1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Fix headless mode

This commit is contained in:
Andrii Danylchenko
2023-12-03 18:39:25 +02:00
parent 6b760089a4
commit cc7fc4a2c6
5 changed files with 29 additions and 14 deletions

View File

@ -617,7 +617,9 @@ bool CServerHandler::validateGameStart(bool allowOnlyAI) const
void CServerHandler::sendStartGame(bool allowOnlyAI) const
{
verifyStateBeforeStart(allowOnlyAI ? true : settings["session"]["onlyai"].Bool());
GH.windows().createAndPushWindow<CLoadingScreen>();
if(!settings["session"]["headless"].Bool())
GH.windows().createAndPushWindow<CLoadingScreen>();
LobbyStartGame lsg;
if(client)