diff options
author | Willem Jan Palenstijn | 2015-04-26 00:50:00 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-04-26 00:51:31 +0200 |
commit | 21b138add24e9b95e70adb267c35268de0f828d1 (patch) | |
tree | 50c59d6b9babcc11824833ad8020b23885cd3241 | |
parent | 4c03e4b699916a9b9fe71afffaf41c283045216e (diff) | |
download | scummvm-rg350-21b138add24e9b95e70adb267c35268de0f828d1.tar.gz scummvm-rg350-21b138add24e9b95e70adb267c35268de0f828d1.tar.bz2 scummvm-rg350-21b138add24e9b95e70adb267c35268de0f828d1.zip |
Revert "SCI: Hopefully fix bug #3565505 - "SCI : crash when loading a savegame""
This reverts commit 76ff4c700166d69b416dae324ee616ab57265c34.
It was intended to fix bug #6136, but only worked around the actual
problem in some cases. See 4c03e4b699916a9b9fe71afffaf41c283045216e.
-rw-r--r-- | engines/sci/detection.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 85ff1c0062..e572e8ec7f 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -834,16 +834,12 @@ Common::Error SciEngine::saveGameState(int slot, const Common::String &desc) { return Common::kNoError; } -// Before enabling the load option in the ScummVM menu, the main game loop must -// have run at least once. When the game loop runs, kGameIsRestarting is invoked, -// thus the speed throttler is initialized. Hopefully fixes bug #3565505. - bool SciEngine::canLoadGameStateCurrently() { - return !_gamestate->executionStackBase && (_gamestate->_throttleLastTime > 0 || _gamestate->_throttleTrigger); + return !_gamestate->executionStackBase; } bool SciEngine::canSaveGameStateCurrently() { - return !_gamestate->executionStackBase && (_gamestate->_throttleLastTime > 0 || _gamestate->_throttleTrigger); + return !_gamestate->executionStackBase; } } // End of namespace Sci |