Mark game as running when start process is initiated.

This commit is contained in:
lotodore
2010-11-13 12:37:28 +00:00
parent 55f7bb7132
commit 39a235d020
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -288,7 +288,6 @@ ServerGame::InternalStartGame()
GuiInterface &gui = GetGui();
m_game.reset(new Game(&gui, factory, playerData, GetGameData(), GetStartData(), GetNextGameNum()));
GetLobbyThread().NotifyStartingGame(GetId());
GetDatabase().AsyncCreateGame(GetId(), GetName());
InitRankingMap(playerData);
}
+2
View File
@@ -535,6 +535,8 @@ ServerGameStateInit::SendStartEvent(ServerGame &server, bool fillWithComputerPla
// Wait for all players to confirm start of game.
server.SendToAllPlayers(packet, SessionData::Game);
// Notify lobby that this game is running.
server.GetLobbyThread().NotifyStartingGame(server.GetId());
server.SetState(ServerGameStateStartGame::Instance());
}