aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2011-08-08 13:50:47 +1000
committerTravis Howell2011-08-08 13:50:47 +1000
commitc87ff89b4aceb4494466c4277614346376a2be0c (patch)
treeb252e8f4045c08d9290308730adfb6ed7429baa5 /engines
parent905e9bc3ed7a82217bf635cce67675e33792f8c6 (diff)
downloadscummvm-rg350-c87ff89b4aceb4494466c4277614346376a2be0c.tar.gz
scummvm-rg350-c87ff89b4aceb4494466c4277614346376a2be0c.tar.bz2
scummvm-rg350-c87ff89b4aceb4494466c4277614346376a2be0c.zip
SCUMM: Update stub in arrayOps for Moonbase Commander.
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/he/script_v100he.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp
index 5a9172ff8a..56ea10f507 100644
--- a/engines/scumm/he/script_v100he.cpp
+++ b/engines/scumm/he/script_v100he.cpp
@@ -542,7 +542,7 @@ void ScummEngine_v100he::o100_arrayOps() {
int dim1end, dim1start, dim2end, dim2start;
int id, len, b, c, list[128];
int offs, tmp, tmp2;
- uint tmp3;
+ uint tmp3, type;
byte subOp = fetchScriptByte();
int array = fetchScriptWord();
@@ -625,11 +625,10 @@ void ScummEngine_v100he::o100_arrayOps() {
}
break;
case 132:
- debug(0, "o100_arrayOps: case 132");
- // TODO: Used by Moonbase Commander
+ // TODO: Used by room 2 script 2180 in Moonbase Commander
fetchScriptWord();
fetchScriptWord();
- pop();
+ type = pop();
pop();
pop();
pop();
@@ -646,6 +645,21 @@ void ScummEngine_v100he::o100_arrayOps() {
if (id == 0) {
defineArray(array, kDwordArray, dim2start, dim2end, dim1start, dim1end);
}
+ switch (type) {
+ case 1:
+ break;
+ case 2:
+ break;
+ case 3:
+ break;
+ case 4:
+ break;
+ case 5:
+ break;
+ default:
+ error("o100_arrayOps: case 132 unknown type %d)", type);
+ }
+ debug(0, "o100_arrayOps: case 132 type %d", type);
break;
case 133:
b = pop();