LILLIPUT: Fix bug in OC_compWord10804

This commit is contained in:
Strangerke 2012-05-18 17:06:58 +02:00 committed by Eugene Sandulenko
parent 3a102e6f24
commit 9ecbc0e327
2 changed files with 7 additions and 7 deletions

View file

@ -338,7 +338,7 @@ public:
byte _byte129A0; byte _byte129A0;
byte _numCharactersToDisplay; byte _numCharactersToDisplay;
byte _byte16C9F; byte _byte16C9F;
int _word10804; int16 _word10804;
bool _shouldQuit; bool _shouldQuit;

View file

@ -1743,9 +1743,9 @@ byte LilliputScript::OC_sub176C4() {
} }
byte LilliputScript::OC_compWord10804() { byte LilliputScript::OC_compWord10804() {
debugC(1, kDebugScriptTBC, "OC_compWord10804()"); debugC(1, kDebugScript, "OC_compWord10804()");
byte tmpVal = getValue1(); int tmpVal = getValue1();
if (tmpVal == _vm->_word10804) if (tmpVal == _vm->_word10804)
return 1; return 1;
@ -2284,7 +2284,7 @@ void LilliputScript::OC_setCharacterPosition() {
} }
void LilliputScript::OC_DisableCharacter() { void LilliputScript::OC_DisableCharacter() {
debugC(1, kDebugScriptTBC, "OC_DisableCharacter()"); debugC(1, kDebugScript, "OC_DisableCharacter()");
int characterIndex = getValue1(); int characterIndex = getValue1();
assert(characterIndex < 40); assert(characterIndex < 40);
@ -2352,7 +2352,7 @@ void LilliputScript::OC_setByte18823() {
} }
void LilliputScript::OC_callScript() { void LilliputScript::OC_callScript() {
debugC(1, kDebugScriptTBC, "OC_callScript()"); debugC(1, kDebugScript, "OC_callScript()");
int index = _currScript->readUint16LE(); int index = _currScript->readUint16LE();
int var1 = getValue1(); int var1 = getValue1();
@ -2416,7 +2416,7 @@ void LilliputScript::OC_sub17AEE() {
} }
void LilliputScript::OC_setWord10804() { void LilliputScript::OC_setWord10804() {
debugC(1, kDebugScriptTBC, "OC_setWord10804()"); debugC(1, kDebugScript, "OC_setWord10804()");
_vm->_word10804 = getValue1(); _vm->_word10804 = getValue1();
} }