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

End turn autosave support + making it default

This commit is contained in:
Dydzio
2023-07-13 22:07:42 +02:00
parent 616916714a
commit ad66acdd79
4 changed files with 17 additions and 4 deletions

View File

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