aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-02-21 11:46:35 +0000
committerTravis Howell2007-02-21 11:46:35 +0000
commit29ada821344e905fb685e79efa08a6d88b85eb14 (patch)
tree8e51dcb9b29db9a2af6686d2a6be03c4caaa2f62 /engines/agos/script.cpp
parentb5b45131c2c4fdacc7da77ffa63eadc3a9f72dc7 (diff)
downloadscummvm-rg350-29ada821344e905fb685e79efa08a6d88b85eb14.tar.gz
scummvm-rg350-29ada821344e905fb685e79efa08a6d88b85eb14.tar.bz2
scummvm-rg350-29ada821344e905fb685e79efa08a6d88b85eb14.zip
Bypass the copy protection screens in floppy disk releases of Simon the Sorcerer 1 and 2, with permission from Adventure Soft.
svn-id: r25760
Diffstat (limited to 'engines/agos/script.cpp')
-rw-r--r--engines/agos/script.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/agos/script.cpp b/engines/agos/script.cpp
index 6c9ccdf1c5..9684cd3450 100644
--- a/engines/agos/script.cpp
+++ b/engines/agos/script.cpp
@@ -875,6 +875,14 @@ void AGOSEngine::o_restoreIcons() {
void AGOSEngine::o_freezeZones() {
// 138: freeze zones
freezeBottom();
+
+ if (!_copyProtection && !(getFeatures() & GF_TALKIE)) {
+ if ((getGameType() == GType_SIMON1 && _subroutine == 2924) ||
+ (getGameType() == GType_SIMON2 && _subroutine == 1322)) {
+ _variableArray[135] = 3;
+ setScriptCondition(0);
+ }
+ }
}
void AGOSEngine::o_placeNoIcons() {