Fixed nasty synchronization bug when players leave during start of a game. Fixed netpacket error which occured occasionally during game start when only one player was left, the last player will be removed from the game now, but stay in the lobby. Added new stat to IRC bot.

This commit is contained in:
lotodore
2008-04-02 21:41:39 +00:00
parent e0be7e9490
commit 91b62abf7b
5 changed files with 54 additions and 21 deletions
+2
View File
@@ -404,6 +404,8 @@ void
ServerGameThread::MoveSessionToLobby(SessionWrapper session, int reason)
{
GracefulRemoveSession(session);
// Reset ready flag - just in case it is set, player may leave at any time.
session.sessionData->ResetReadyFlag();
GetLobbyThread().ReAddSession(session, reason);
}