aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/kyra_lok.cpp2
-rw-r--r--engines/kyra/kyra_v1.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/kyra_lok.cpp b/engines/kyra/kyra_lok.cpp
index b228deb55c..700b0502b7 100644
--- a/engines/kyra/kyra_lok.cpp
+++ b/engines/kyra/kyra_lok.cpp
@@ -476,7 +476,9 @@ void KyraEngine_LoK::delay(uint32 amount, bool update, bool isMainLoop) {
updateMousePointer();
}
+ _isSaveAllowed = isMainLoop;
updateInput();
+ _isSaveAllowed = false;
if (_currentCharacter && _currentCharacter->sceneId == 210 && update)
updateKyragemFading();
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index eb0f929096..fbbaf7272a 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -226,11 +226,8 @@ void KyraEngine_v1::setMousePos(int x, int y) {
int KyraEngine_v1::checkInput(Button *buttonList, bool mainLoop) {
debugC(9, kDebugLevelMain, "KyraEngine_v1::checkInput(%p, %d)", (const void*)buttonList, mainLoop);
- if (mainLoop)
- _isSaveAllowed = true;
-
+ _isSaveAllowed = mainLoop;
updateInput();
-
_isSaveAllowed = false;
int keys = 0;