aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-02-12 05:16:03 +0000
committerTravis Howell2007-02-12 05:16:03 +0000
commit45692d4323d1b3a7a4aab3199baa09f26d1783df (patch)
tree0da187cb739ba60d22cf2d144f4389e30348c3c8 /engines/agos/script.cpp
parent9315ccbdc152a808383379009f073fd817876b57 (diff)
downloadscummvm-rg350-45692d4323d1b3a7a4aab3199baa09f26d1783df.tar.gz
scummvm-rg350-45692d4323d1b3a7a4aab3199baa09f26d1783df.tar.bz2
scummvm-rg350-45692d4323d1b3a7a4aab3199baa09f26d1783df.zip
Add work around for script bug in Amiga AGA/CD32 verisons of Simon the Sorcerer 1.
svn-id: r25510
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 60c3d97c1d..5afafc148e 100644
--- a/engines/agos/script.cpp
+++ b/engines/agos/script.cpp
@@ -619,6 +619,14 @@ void AGOSEngine::o_picture() {
uint vga_res = getVarOrWord();
uint mode = getVarOrByte();
+ // Work around a script bug in the Amiga AGA/CD32 versions
+ // When selecting locations on the magical map, the script looks
+ // for vga_res 12701, but only vga_res 12700 exists.
+ if (getGameType() == GType_SIMON1 && getPlatform() == Common::kPlatformAmiga &&
+ vga_res == 12701) {
+ vga_res = 12700;
+ }
+
_picture8600 = (vga_res == 8600);
setWindowImageEx(mode, vga_res);
}