1
0
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:
Nordsoft91
2023-08-23 17:28:19 +04:00
committed by GitHub
21 changed files with 229 additions and 43 deletions

View File

@@ -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;
}