aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-10-14 12:36:46 +0000
committerTravis Howell2005-10-14 12:36:46 +0000
commitdcb2372e23d58f700f25764429f148ddd5d8f73b (patch)
tree55890eba7f2c8bb76da0485f3ed288f4011ef492 /scumm/script_v72he.cpp
parent67eedc08d27e6a3649db5bcb9a4c0ad76e468d35 (diff)
downloadscummvm-rg350-dcb2372e23d58f700f25764429f148ddd5d8f73b.tar.gz
scummvm-rg350-dcb2372e23d58f700f25764429f148ddd5d8f73b.tar.bz2
scummvm-rg350-dcb2372e23d58f700f25764429f148ddd5d8f73b.zip
Adjust array ids in HE80+ games, to match original.
Otherwise array aren't always nuked by scripts. svn-id: r19082
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 281ec6b0e1..fbb022ae68 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -405,8 +405,14 @@ ScummEngine_v72he::ArrayHeader *ScummEngine_v72he::defineArray(int array, int ty
size = arrayDataSizes[type];
+ if (_heversion >= 80)
+ id |= 0x33539000;
+
writeVar(array, id);
+ if (_heversion >= 80)
+ id &= ~0x33539000;
+
size *= dim2end - dim2start + 1;
size *= dim1end - dim1start + 1;
size >>= 3;