aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2011-11-19 17:05:09 +1100
committerTravis Howell2011-11-19 17:05:23 +1100
commit105c90b9d50605bc925c2d6c0cb9ed6658c3acef (patch)
treefb8767aa1e122cc9eeecb7cdad8ba6dbe1f45030 /engines/agos
parent04ae8dbf207ab45dc6018517ad55c6f14a086321 (diff)
downloadscummvm-rg350-105c90b9d50605bc925c2d6c0cb9ed6658c3acef.tar.gz
scummvm-rg350-105c90b9d50605bc925c2d6c0cb9ed6658c3acef.tar.bz2
scummvm-rg350-105c90b9d50605bc925c2d6c0cb9ed6658c3acef.zip
AGOS: Fix using saved games from the CD versions of Simon the Sorcerer 2, on the floppy disk versions of Simon the Sorcerer 2.
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/saveload.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp
index 6779eabdbf..920dbb0a0d 100644
--- a/engines/agos/saveload.cpp
+++ b/engines/agos/saveload.cpp
@@ -1390,6 +1390,15 @@ bool AGOSEngine_Elvira2::loadGame(const char *filename, bool restartMode) {
_videoLockOut &= ~0x100;
+ // The floppy disk versions of Simon the Sorcerer 2 block changing
+ // to scrolling rooms, if the copy protection fails. But the copy
+ // protection flags are never set in the CD version.
+ // Setting this copy protection flag, allows saved games to be shared
+ // between all versions of Simon the Sorcerer 2.
+ if (getGameType() == GType_SIMON2) {
+ setBitFlag(135, 1);
+ }
+
return true;
}