mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +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…
x
Reference in New Issue
Block a user