aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorJames Brown2003-04-20 16:46:55 +0000
committerJames Brown2003-04-20 16:46:55 +0000
commit47114e1da2790eff6ef9be716a6f8df1009e75da (patch)
tree3e8a53a956c82376370af12bcab0412a027dc3e7 /scumm/script.cpp
parent5f1e964b65060f24ffb7dcc08e4fbd3c04baeb0a (diff)
downloadscummvm-rg350-47114e1da2790eff6ef9be716a6f8df1009e75da.tar.gz
scummvm-rg350-47114e1da2790eff6ef9be716a6f8df1009e75da.tar.bz2
scummvm-rg350-47114e1da2790eff6ef9be716a6f8df1009e75da.zip
V2 only reads one byte for variable number
svn-id: r7036
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 384c46ecc8..e35da79b42 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -466,6 +466,12 @@ void Scumm::writeVar(uint var, int value) {
void Scumm::getResultPos() {
int a;
+ // FIXME: Subclass this properly
+ if (_features & GF_AFTER_V2) {
+ _resultVarNumber = fetchScriptByte();
+ return;
+ }
+
_resultVarNumber = fetchScriptWord();
if (_resultVarNumber & 0x2000) {
a = fetchScriptWord();