diff options
author | Eugene Sandulenko | 2009-05-21 21:51:50 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-05-21 21:51:50 +0000 |
commit | 7ed8d7f573da40d19299f14d304491184fe221a8 (patch) | |
tree | 34901975e9ba626c20bb2712abcd4a090a9e15ed /engines/agi/detection.cpp | |
parent | b4312540701c172fc80b50c0be03fd92ab530aeb (diff) | |
download | scummvm-rg350-7ed8d7f573da40d19299f14d304491184fe221a8.tar.gz scummvm-rg350-7ed8d7f573da40d19299f14d304491184fe221a8.tar.bz2 scummvm-rg350-7ed8d7f573da40d19299f14d304491184fe221a8.zip |
Proper fix for bug #2537054: "AGI: Using GMM to load causes graphics glitches".
Save/load via GMM is not allowed in certain situations now.
svn-id: r40773
Diffstat (limited to 'engines/agi/detection.cpp')
-rw-r--r-- | engines/agi/detection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index afd5c13ec1..b99c24043a 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -1174,11 +1174,11 @@ Common::Error AgiBase::saveGameState(int slot, const char *desc) { } bool AgiBase::canLoadGameStateCurrently() { - return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork)); + return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork) && !getflag(fNoSaveLoadAllowed)); } bool AgiBase::canSaveGameStateCurrently() { - return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork)); + return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork) && !getflag(fNoSaveLoadAllowed)); } } // End of namespace Agi |