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

Merge pull request #2404 from dydzio0614/autosave-fix

End turn autosave fix
This commit is contained in:
Ivan Savenko 2023-07-24 22:26:43 +03:00 committed by GitHub
commit be3ed014a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,14 +417,14 @@ void AdventureMapInterface::hotkeyEndingTurn()
if(settings["session"]["spectate"].Bool())
return;
LOCPLINT->makingTurn = false;
LOCPLINT->cb->endTurn();
if(!settings["general"]["startTurnAutosave"].Bool())
{
LOCPLINT->performAutosave();
}
LOCPLINT->makingTurn = false;
LOCPLINT->cb->endTurn();
mapAudio->onPlayerTurnEnded();
}