aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-08-03 22:50:16 +0200
committeruruk2014-08-03 22:50:16 +0200
commit010a806a195f492119e2f0066d6ae398d74f3d28 (patch)
treee22f3cde3af88ae78fe2dfb04729db8397c8fbdd
parent69b9a3fdffe5d13b9d200b612559320eda80851f (diff)
downloadscummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.tar.gz
scummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.tar.bz2
scummvm-rg350-010a806a195f492119e2f0066d6ae398d74f3d28.zip
CGE2: Rework canSaveGameStateCurrently().
-rw-r--r--engines/cge2/saveload.cpp8
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) {