From f6028bc8224fb20bca13c947e76a1146753a975d Mon Sep 17 00:00:00 2001 From: Fabio Battaglia Date: Wed, 4 Mar 2009 10:39:12 +0000 Subject: sword1: disable saving/loading through GMM when in game menu svn-id: r39122 --- engines/sword1/detection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp index 246bf95b8e..436b4d86b9 100644 --- a/engines/sword1/detection.cpp +++ b/engines/sword1/detection.cpp @@ -326,7 +326,7 @@ Common::Error SwordEngine::loadGameState(int slot) { } bool SwordEngine::canLoadGameStateCurrently() { - return mouseIsActive(); + return (mouseIsActive() && !_control->isPanelShown()); // Disable GMM loading when game panel is shown } Common::Error SwordEngine::saveGameState(int slot, const char *desc) { @@ -336,7 +336,7 @@ Common::Error SwordEngine::saveGameState(int slot, const char *desc) { } bool SwordEngine::canSaveGameStateCurrently() { - return mouseIsActive(); + return (mouseIsActive() && !_control->isPanelShown()); } } // End of namespace Sword1 -- cgit v1.2.3