Add work around for script bug in Amiga AGA/CD32 verisons of Simon the Sorcerer 1.

svn-id: r25510
This commit is contained in:
Travis Howell 2007-02-12 05:16:03 +00:00
parent 9315ccbdc1
commit 45692d4323

View File

@ -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);
}