aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2012-11-06 12:58:33 +0200
committerFilippos Karapetis2012-11-06 12:58:33 +0200
commitc34704972ece95bfbcf0c0837cf5b8102387194d (patch)
tree2ef5bdf55a0aa69b419de487fca37d5b20e4bb89 /engines/sci
parent20afbe95e64b4368d1380a533598fea8aa90dbd5 (diff)
downloadscummvm-rg350-c34704972ece95bfbcf0c0837cf5b8102387194d.tar.gz
scummvm-rg350-c34704972ece95bfbcf0c0837cf5b8102387194d.tar.bz2
scummvm-rg350-c34704972ece95bfbcf0c0837cf5b8102387194d.zip
SCI: reset _throttleLastTime when restarting
This ensures that the load dialog in the ScummVM menu won't be available at inappropriate times when a game is restarting (e.g QFG1, during the starting warning dialogs - bug #3565505)
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 15b18ce8e6..118f7d9b33 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -699,6 +699,7 @@ void SciEngine::runGame() {
patchGameSaveRestore();
setLauncherLanguage();
_gamestate->gameIsRestarting = GAMEISRESTARTING_RESTART;
+ _gamestate->_throttleLastTime = 0;
if (_gfxMenu)
_gfxMenu->reset();
_gamestate->abortScriptProcessing = kAbortNone;