LOL: implemented opcode for white tower

svn-id: r41050
This commit is contained in:
Florian Kagerer 2009-05-30 21:03:10 +00:00
parent c552dd4688
commit 6059f84f6a
2 changed files with 11 additions and 1 deletions

View File

@ -754,6 +754,7 @@ private:
int olol_gasExplosion(EMCState *script);
int olol_calcNewBlockPosition(EMCState *script);
int olol_updateDrawPage2(EMCState *script);
int olol_setMouseCursor(EMCState *script);
int olol_characterSays(EMCState *script);
int olol_queueSpeech(EMCState *script);
int olol_getItemPrice(EMCState *script);

View File

@ -2080,6 +2080,15 @@ int LoLEngine::olol_updateDrawPage2(EMCState *script) {
return 1;
}
int LoLEngine::olol_setMouseCursor(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_setMouseCursor(%p) (%d)", (const void *)script, stackPos(0));
if (stackPos(0) == 1)
setMouseCursorToIcon(133);
else
setMouseCursorToItemInHand();
return 1;
}
int LoLEngine::olol_characterSays(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_characterSays(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
if (stackPos(0) == -1) {
@ -2641,7 +2650,7 @@ void LoLEngine::setupOpcodeTable() {
// 0xB8
OpcodeUnImpl();
Opcode(olol_updateDrawPage2);
OpcodeUnImpl();
Opcode(olol_setMouseCursor);
Opcode(olol_characterSays);
// 0xBC