NetPlayClient: Change return value of OnData() to void
In all usage cases, the return value isn't utilized.
This commit is contained in:
parent
ae714b25ba
commit
2b9c65967e
|
@ -311,7 +311,7 @@ static void ReceiveSyncIdentifier(sf::Packet& spac, SyncIdentifier& sync_identif
|
||||||
}
|
}
|
||||||
|
|
||||||
// called from ---NETPLAY--- thread
|
// called from ---NETPLAY--- thread
|
||||||
u32 NetPlayClient::OnData(sf::Packet& packet)
|
void NetPlayClient::OnData(sf::Packet& packet)
|
||||||
{
|
{
|
||||||
MessageId mid;
|
MessageId mid;
|
||||||
packet >> mid;
|
packet >> mid;
|
||||||
|
@ -457,8 +457,6 @@ u32 NetPlayClient::OnData(sf::Packet& packet)
|
||||||
PanicAlertFmtT("Unknown message received with id : {0}", mid);
|
PanicAlertFmtT("Unknown message received with id : {0}", mid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayClient::OnPlayerJoin(sf::Packet& packet)
|
void NetPlayClient::OnPlayerJoin(sf::Packet& packet)
|
||||||
|
|
|
@ -240,7 +240,7 @@ private:
|
||||||
void DisplayPlayersPing();
|
void DisplayPlayersPing();
|
||||||
u32 GetPlayersMaxPing() const;
|
u32 GetPlayersMaxPing() const;
|
||||||
|
|
||||||
u32 OnData(sf::Packet& packet);
|
void OnData(sf::Packet& packet);
|
||||||
void OnPlayerJoin(sf::Packet& packet);
|
void OnPlayerJoin(sf::Packet& packet);
|
||||||
void OnPlayerLeave(sf::Packet& packet);
|
void OnPlayerLeave(sf::Packet& packet);
|
||||||
void OnChatMessage(sf::Packet& packet);
|
void OnChatMessage(sf::Packet& packet);
|
||||||
|
|
Loading…
Reference in New Issue