aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorsylvaintv2012-04-22 23:54:45 +0200
committerEugene Sandulenko2018-03-28 17:36:57 +0200
commit8bc2d28e5d23fc7bc2da1c4932fb5e6123413f6b (patch)
tree1e6cd585e9a79543dc2ae4e6488d4ea217fe379a /engines
parentc304967abc2a0a79f7c35f6003b4ecec72c4bf6c (diff)
downloadscummvm-rg350-8bc2d28e5d23fc7bc2da1c4932fb5e6123413f6b.tar.gz
scummvm-rg350-8bc2d28e5d23fc7bc2da1c4932fb5e6123413f6b.tar.bz2
scummvm-rg350-8bc2d28e5d23fc7bc2da1c4932fb5e6123413f6b.zip
LILLIPUT: Small additions
Small implementations of the int8 functions
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];
}
}