aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:29:43 +0000
committerEugene Sandulenko2010-06-15 10:29:43 +0000
commit341fba383e8493e214c9e74c67cf3de0467c3e6a (patch)
tree6bf90e1efb50987b145f4eefeb7e6e230dbdea95
parent25948606c46fdb841b961439023bb64ca542e461 (diff)
downloadscummvm-rg350-341fba383e8493e214c9e74c67cf3de0467c3e6a.tar.gz
scummvm-rg350-341fba383e8493e214c9e74c67cf3de0467c3e6a.tar.bz2
scummvm-rg350-341fba383e8493e214c9e74c67cf3de0467c3e6a.zip
AGI: Fix bug #2862508.
Bug #2862508: "AGI: Black cauldron save through GMM". BC does not have input line, and that was used for determining that user can save. Added special case for BC, so it is always allowed to save. In fact, original does not allow saving in some rare occasions, but that will require analysing of variables, which is a gross hack. svn-id: r49738
-rw-r--r--engines/agi/detection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index fa21925b78..a809d24467 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -488,6 +488,9 @@ bool AgiBase::canLoadGameStateCurrently() {
}
bool AgiBase::canSaveGameStateCurrently() {
+ if (getGameID() == GID_BC) // Technically in Black Cauldron we may save anytime
+ return true;
+
return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork) && !_noSaveLoadAllowed && _game.inputEnabled);
}