aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-05 09:25:07 +0000
committerMax Horn2003-05-05 09:25:07 +0000
commitac0897515db5de4077031e9f385f0ece6c0fe202 (patch)
tree2a006e585b7e19ef324907ca3c4e43d20db15a94 /scumm/script_v5.cpp
parentfa0df19a1df16489b7319bfd27711409c15fa699 (diff)
downloadscummvm-rg350-ac0897515db5de4077031e9f385f0ece6c0fe202.tar.gz
scummvm-rg350-ac0897515db5de4077031e9f385f0ece6c0fe202.tar.bz2
scummvm-rg350-ac0897515db5de4077031e9f385f0ece6c0fe202.zip
unified o?_isEqual, too (but not as nice due to hack)
svn-id: r7340
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index ed69b94606..483885addb 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1212,7 +1212,10 @@ void Scumm_v5::o5_isEqual() {
int16 a, b;
int var;
- var = fetchScriptWord();
+ if (_features & GF_AFTER_V2)
+ var = fetchScriptByte();
+ else
+ var = fetchScriptWord();
a = readVar(var);
b = getVarOrDirectWord(0x80);