aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorBastien Bouclet2017-06-25 11:37:04 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit637a08bcf3b2b6404d03c4a58c6a678d6d5479f0 (patch)
treee819e7abdfdf0ebeb28757f0a87511b48d3cc29f /engines/mohawk
parent44943e1285f128dc1975789b937dd6540bbaa301 (diff)
downloadscummvm-rg350-637a08bcf3b2b6404d03c4a58c6a678d6d5479f0.tar.gz
scummvm-rg350-637a08bcf3b2b6404d03c4a58c6a678d6d5479f0.tar.bz2
scummvm-rg350-637a08bcf3b2b6404d03c4a58c6a678d6d5479f0.zip
MOHAWK: Don't allow loading while a script is running
Scripts may have an inner game loop where loading is not working.
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/riven.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 0288266daf..9307081254 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -517,10 +517,6 @@ bool MohawkEngine_Riven::isZipVisitedCard(const Common::String &hotspotName) con
}
bool MohawkEngine_Riven::canLoadGameStateCurrently() {
- return !(getFeatures() & GF_DEMO);
-}
-
-bool MohawkEngine_Riven::canSaveGameStateCurrently() {
if (getFeatures() & GF_DEMO) {
return false;
}
@@ -532,6 +528,10 @@ bool MohawkEngine_Riven::canSaveGameStateCurrently() {
return true;
}
+bool MohawkEngine_Riven::canSaveGameStateCurrently() {
+ return canLoadGameStateCurrently();
+}
+
bool ZipMode::operator== (const ZipMode &z) const {
return z.name == name && z.id == id;
}