NetPlayClient: Change return value of OnData() to void

In all usage cases, the return value isn't utilized.
This commit is contained in:
Lioncash 2021-09-15 11:28:04 -04:00
parent ae714b25ba
commit 2b9c65967e
2 changed files with 2 additions and 4 deletions

View File

@ -311,7 +311,7 @@ static void ReceiveSyncIdentifier(sf::Packet& spac, SyncIdentifier& sync_identif
}
// called from ---NETPLAY--- thread
u32 NetPlayClient::OnData(sf::Packet& packet)
void NetPlayClient::OnData(sf::Packet& packet)
{
MessageId mid;
packet >> mid;
@ -457,8 +457,6 @@ u32 NetPlayClient::OnData(sf::Packet& packet)
PanicAlertFmtT("Unknown message received with id : {0}", mid);
break;
}
return 0;
}
void NetPlayClient::OnPlayerJoin(sf::Packet& packet)

View File

@ -240,7 +240,7 @@ private:
void DisplayPlayersPing();
u32 GetPlayersMaxPing() const;
u32 OnData(sf::Packet& packet);
void OnData(sf::Packet& packet);
void OnPlayerJoin(sf::Packet& packet);
void OnPlayerLeave(sf::Packet& packet);
void OnChatMessage(sf::Packet& packet);