From 637a08bcf3b2b6404d03c4a58c6a678d6d5479f0 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 25 Jun 2017 11:37:04 +0200 Subject: MOHAWK: Don't allow loading while a script is running Scripts may have an inner game loop where loading is not working. --- engines/mohawk/riven.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/mohawk') 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; } -- cgit v1.2.3