diff options
author | Eugene Sandulenko | 2009-07-22 19:25:53 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-07-22 19:25:53 +0000 |
commit | 9b031982cf3931c18d0804f23a3fe6779a6204d1 (patch) | |
tree | f36788ba19894d3609d7911c394c24b5bfe5db13 /engines/scumm/saveload.cpp | |
parent | 0932497cca79bba4f10c8443b2a0d45837310946 (diff) | |
download | scummvm-rg350-9b031982cf3931c18d0804f23a3fe6779a6204d1.tar.gz scummvm-rg350-9b031982cf3931c18d0804f23a3fe6779a6204d1.tar.bz2 scummvm-rg350-9b031982cf3931c18d0804f23a3fe6779a6204d1.zip |
Fix bug #1745396: "MI: Saved game from the credits sequence fails to load".
Now we specifically disallow saves in room 0 for all v4+ games. Original
has exactly this check in all versions, and such games are impossible to load.
Still the problem is not resolved for v0-v3 and HE games.
svn-id: r42664
Diffstat (limited to 'engines/scumm/saveload.cpp')
-rw-r--r-- | engines/scumm/saveload.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp index d474a43b05..4d131b41be 100644 --- a/engines/scumm/saveload.cpp +++ b/engines/scumm/saveload.cpp @@ -95,6 +95,10 @@ Common::Error ScummEngine::saveGameState(int slot, const char *desc) { } bool ScummEngine::canSaveGameStateCurrently() { + // For v4+ games do not allow to save in room 0 + if (_game.version >= 4) + return (_currentRoom != 0); + // FIXME: For now always allow loading in V0-V3 games // TODO: Should we disallow saving in some more places, // e.g. when a SAN movie is playing? Not sure whether the |