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
+2
View File
@@ -1184,6 +1184,8 @@ ServerGameStateNextGameDelay::Process(ServerGameThread &server)
server.SendToAllPlayers(endGame, SessionData::Game);
// Wait for the start of a new game.
server.ResetComputerPlayerList();
server.ResetGame();
server.SetState(ServerGameStateInit::Instance());
server.GetLobbyThread().NotifyReopeningGame(server.GetId());
}