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:
commit
be3ed014a7
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user