All players within a single ranking game need different ip addresses.

This commit is contained in:
lotodore
2010-10-02 19:50:49 +00:00
parent 3141743430
commit 0402313115
5 changed files with 34 additions and 0 deletions
+5
View File
@@ -1395,6 +1395,11 @@ ServerLobbyThread::HandleNetPacketJoinGame(SessionWrapper session, const std::st
{
SendJoinGameFailed(session.sessionData, joinGame.gameId, NTF_NET_JOIN_INVALID_PASSWORD);
}
else if (tmpData.gameType == GAME_TYPE_RANKING
&& game.IsClientAddressConnected(session.sessionData->GetClientAddr()))
{
SendJoinGameFailed(session.sessionData, joinGame.gameId, NTF_NET_JOIN_GAME_FULL);
}
else
{
MoveSessionToGame(game, session);