aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/lilliput/lilliput.cpp11
-rw-r--r--engines/lilliput/lilliput.h2
-rw-r--r--engines/lilliput/script.cpp4
3 files changed, 13 insertions, 4 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp
index 8d8091af5f..1fd207c4e1 100644
--- a/engines/lilliput/lilliput.cpp
+++ b/engines/lilliput/lilliput.cpp
@@ -1033,7 +1033,7 @@ void LilliputEngine::sub16626() {
result = sub16675(index, var1);
break;
case 1:
- warning("result = sub_166DD");
+ result = sub166DD(index, var1);
break;
case 2:
case 3:
@@ -1043,7 +1043,7 @@ void LilliputEngine::sub16626() {
case 7:
case 8:
case 9:
- warning("result = sub_16672");
+ result = 0;
break;
case 10:
warning("result = sub_1675D");
@@ -1078,6 +1078,13 @@ void LilliputEngine::sub16626() {
}
}
+int LilliputEngine::sub166DD(int index, int var1) {
+
+ _rulesBuffer2_9[index] = (var1 >> 8) & 3;
+ sub16685(index, var1 & 0xFF);
+ return 0;
+}
+
void LilliputEngine::sub16EBC() {
debugC(2, kDebugEngine, "sub16EBC()");
diff --git a/engines/lilliput/lilliput.h b/engines/lilliput/lilliput.h
index e13cd0a860..48971b4ad4 100644
--- a/engines/lilliput/lilliput.h
+++ b/engines/lilliput/lilliput.h
@@ -228,6 +228,7 @@ public:
void sub163F0(int var1, int var3);
void sub189DE();
void sub16626();
+
void sub16553(byte *buf);
int sub16799(int param1, int index);
int sub16B0C(int param1, int param2);
@@ -237,6 +238,7 @@ public:
int sub16675(int idx, int var1);
int sub16685(int idx, int var1);
void sub16EBC();
+ int sub166DD(int index, int var1);
void sub171CF();
void sub12FE5();
void displayHeroismIndicator();
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp
index 848c7e9309..7c8315d1ff 100644
--- a/engines/lilliput/script.cpp
+++ b/engines/lilliput/script.cpp
@@ -66,7 +66,7 @@ LilliputScript::LilliputScript(LilliputEngine *vm) : _vm(vm), _currScript(NULL)
}
for (int i = 0; i < 640; i++) {
- _array12311[i] = 0xFFFF;
+ _array12311[i] = -1;
}
}
@@ -738,7 +738,7 @@ void LilliputScript::sub16C86(int index, byte *buf) {
_array12811[index] = 0;
for (int i = 0; i < 16; i++) {
- _array12311[(index * 16) + i] = (buf[2 * i] << 8) + buf[(2 * i) + 1];
+ _array12311[(index * 16) + i] = (buf[(2 * i) + 1] << 8) + buf[2 * i];
}
}