diff options
author | uruk | 2014-08-03 22:50:16 +0200 |
---|---|---|
committer | uruk | 2014-08-03 22:50:16 +0200 |
commit | 010a806a195f492119e2f0066d6ae398d74f3d28 (patch) | |
tree | e22f3cde3af88ae78fe2dfb04729db8397c8fbdd | |
parent | 69b9a3fdffe5d13b9d200b612559320eda80851f (diff) | |
download | scummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.tar.gz scummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.tar.bz2 scummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.zip |
CGE2: Rework canSaveGameStateCurrently().
-rw-r--r-- | engines/cge2/saveload.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/cge2/saveload.cpp b/engines/cge2/saveload.cpp index a7d04bbc09..0fb3fb20f8 100644 --- a/engines/cge2/saveload.cpp +++ b/engines/cge2/saveload.cpp @@ -147,14 +147,8 @@ void CGE2MetaEngine::removeSaveState(const char *target, int slot) const { } bool CGE2Engine::canSaveGameStateCurrently() { - bool isHeroVisible = false; - for (int i = 0; i < 2; i++) { - isHeroVisible = !_heroTab[i]->_ptr->_flags._hide; - if (isHeroVisible) - break; - } return (_startupMode == 0) && _mouse->_active && - _commandHandler->idle() && isHeroVisible; + _commandHandler->idle() && !(*_soundStat._wait); } Common::Error CGE2Engine::saveGameState(int slot, const Common::String &desc) { |