From a4f9cde57db3a093d06e40d7f3cbe14d7f6d1249 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Mon, 24 Jul 2023 18:24:57 +0200 Subject: [PATCH] Fix autosave at end of turn starting with AI turn on load --- client/adventureMap/AdventureMapInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index d8a8d7f28..5d9c0a276 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/client/adventureMap/AdventureMapInterface.cpp @@ -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(); }