mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Merge pull request #2635 from Nordsoft91/loading-bar
Loading progress bar
This commit is contained in:
@@ -289,6 +289,7 @@ void ApplyOnServerNetPackVisitor::visitLobbyStartGame(LobbyStartGame & pack)
|
||||
result = false;
|
||||
return;
|
||||
}
|
||||
|
||||
// Server will prepare gamestate and we announce StartInfo to clients
|
||||
if(!srv.prepareToStartGame())
|
||||
{
|
||||
@@ -299,6 +300,7 @@ void ApplyOnServerNetPackVisitor::visitLobbyStartGame(LobbyStartGame & pack)
|
||||
pack.initializedStartInfo = std::make_shared<StartInfo>(*srv.gh->getStartInfo(true));
|
||||
pack.initializedGameState = srv.gh->gameState();
|
||||
|
||||
srv.state = EServerState::GAMEPLAY_STARTING;
|
||||
result = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user