Fixed two bugs concerning lobby player notifications: Game state is now set correctly after a game was finished and reopened, for players which are joining afterwards.

Computer players are now properly removed from finished games.
This commit is contained in:
lotodore
2007-10-11 21:15:04 +00:00
parent 5218e038d4
commit 9663a225d5
3 changed files with 45 additions and 27 deletions
+3
View File
@@ -80,6 +80,8 @@ protected:
virtual void Main();
void InternalStartGame();
void ResetGame();
void InternalKickPlayer(unsigned playerId);
PlayerDataList GetFullPlayerDataList() const;
@@ -88,6 +90,7 @@ protected:
void ResetComputerPlayerList();
void GracefulRemoveSession(SessionWrapper session);
void RemovePlayerData(boost::shared_ptr<PlayerData> player);
void ErrorRemoveSession(SessionWrapper session);
void SessionError(SessionWrapper session, int errorCode);
void MoveSessionToLobby(SessionWrapper session, int reason);