aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFabio Battaglia2009-03-04 10:39:12 +0000
committerFabio Battaglia2009-03-04 10:39:12 +0000
commitf6028bc8224fb20bca13c947e76a1146753a975d (patch)
treee7d7c6da955ac55fa07c4b805218e5d2d109f9a9 /engines
parent928a276c04f485ed0ca2d83d8b0827a81a33dff0 (diff)
downloadscummvm-rg350-f6028bc8224fb20bca13c947e76a1146753a975d.tar.gz
scummvm-rg350-f6028bc8224fb20bca13c947e76a1146753a975d.tar.bz2
scummvm-rg350-f6028bc8224fb20bca13c947e76a1146753a975d.zip
sword1: disable saving/loading through GMM when in game menu
svn-id: r39122
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/detection.cpp4
1 files 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