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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user