1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Load map by itself

This commit is contained in:
nordsoft 2022-09-29 00:09:18 +04:00
parent 2eb497b477
commit 0eb589fb58

View File

@ -105,13 +105,13 @@ bool LobbyStartGame::applyOnLobbyHandler(CServerHandler * handler)
handler->si = initializedStartInfo;
}
if(settings["session"]["headless"].Bool())
handler->startGameplay();
handler->startGameplay(initializedGameState);
return true;
}
void LobbyStartGame::applyOnLobbyScreen(CLobbyScreen * lobby, CServerHandler * handler)
{
GH.pushIntT<CLoadingScreen>(std::bind(&CServerHandler::startGameplay, handler, nullptr));
GH.pushIntT<CLoadingScreen>(std::bind(&CServerHandler::startGameplay, handler, initializedGameState));
}
bool LobbyUpdateState::applyOnLobbyHandler(CServerHandler * handler)