aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-12 17:17:43 +0000
committerMax Horn2003-10-12 17:17:43 +0000
commit8226fbc14770ced7f0e26c4033530d46e14ec39c (patch)
treec04aa57eaa88fe4ff3c97a10622b2bccf6ba1c2f /scumm/script_v5.cpp
parent83f7aa69b5ced7c2dad63a82adb8aa158746a64f (diff)
downloadscummvm-rg350-8226fbc14770ced7f0e26c4033530d46e14ec39c.tar.gz
scummvm-rg350-8226fbc14770ced7f0e26c4033530d46e14ec39c.tar.bz2
scummvm-rg350-8226fbc14770ced7f0e26c4033530d46e14ec39c.zip
workaround for bug #820507 (INDY3TOWNS: Biplane controls are haywire)
svn-id: r10760
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 670622aa6a..0769a2ec9f 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1378,7 +1378,6 @@ void ScummEngine_v5::o5_isGreaterEqual() {
void ScummEngine_v5::o5_isLess() {
int16 a = getVar();
int16 b = getVarOrDirectWord(0x80);
-
if (b < a)
ignoreScriptWord();
else
@@ -1388,6 +1387,15 @@ void ScummEngine_v5::o5_isLess() {
void ScummEngine_v5::o5_lessOrEqual() {
int16 a = getVar();
int16 b = getVarOrDirectWord(0x80);
+
+ // WORKAROUND bug #820507 : Work around a bug in Indy3Town.
+ if (_gameId == GID_INDY3 && (_features & GF_FMTOWNS) &&
+ (vm.slot[_currentScript].number == 200 || vm.slot[_currentScript].number == 203) &&
+ _currentRoom == 70 && b == -256) {
+ o5_jumpRelative();
+ return;
+ }
+
if (b <= a)
ignoreScriptWord();
else