aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-27 14:47:10 +0000
committerTravis Howell2005-04-27 14:47:10 +0000
commit7c3cfae122bd41fd4aa4c5573bbc38d53f337c38 (patch)
treee667cd3bbfa226a1851f80af14b2832802a0eb66 /scumm/script_v72he.cpp
parent8545634aaa684847036e040401e4770dafd0c091 (diff)
downloadscummvm-rg350-7c3cfae122bd41fd4aa4c5573bbc38d53f337c38.tar.gz
scummvm-rg350-7c3cfae122bd41fd4aa4c5573bbc38d53f337c38.tar.bz2
scummvm-rg350-7c3cfae122bd41fd4aa4c5573bbc38d53f337c38.zip
Minor cleanup.
svn-id: r17840
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index cd07a50965..3274280269 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1534,7 +1534,7 @@ void ScummEngine_v72he::o72_arrayOps() {
dim2start++;
}
break;
- case 194: // SO_ASSIGN_STRING
+ case 194:
decodeScriptString(string);
len = resStrLen(string) + 1;
ah = defineArray(array, kStringArray, 0, 0, 0, len);
@@ -1619,8 +1619,9 @@ void ScummEngine_v72he::o72_dimArray() {
void ScummEngine_v72he::o72_dim2dimArray() {
- int a, b, data;
- int type = fetchScriptByte();
+ int data, dim1end, dim2end;
+
+ byte type = fetchScriptByte();
switch (type) {
case 2: // SO_BIT_ARRAY
data = kBitArray;
@@ -1644,9 +1645,9 @@ void ScummEngine_v72he::o72_dim2dimArray() {
error("o72_dim2dimArray: default case %d", type);
}
- b = pop();
- a = pop();
- defineArray(fetchScriptWord(), data, 0, a, 0, b);
+ dim1end = pop();
+ dim2end = pop();
+ defineArray(fetchScriptWord(), data, 0, dim2end, 0, dim1end);
}
void ScummEngine_v72he::o72_traceStatus() {