From 8bc2d28e5d23fc7bc2da1c4932fb5e6123413f6b Mon Sep 17 00:00:00 2001 From: sylvaintv Date: Sun, 22 Apr 2012 23:54:45 +0200 Subject: LILLIPUT: Small additions Small implementations of the int8 functions --- engines/lilliput/lilliput.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/lilliput/lilliput.cpp') 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()"); -- cgit v1.2.3