aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorFlorian Kagerer2009-09-11 21:31:14 +0000
committerFlorian Kagerer2009-09-11 21:31:14 +0000
commit5c2f872ba4920406bc526e4e48a9d6271ef18aee (patch)
treea4e431688c5a03d9ce84e8112fb8c0e2a4d03d51 /engines/kyra
parent4e34275af1d69c8cbe693c539eac005e4c7dfa06 (diff)
downloadscummvm-rg350-5c2f872ba4920406bc526e4e48a9d6271ef18aee.tar.gz
scummvm-rg350-5c2f872ba4920406bc526e4e48a9d6271ef18aee.tar.bz2
scummvm-rg350-5c2f872ba4920406bc526e4e48a9d6271ef18aee.zip
LOL: added another missing opcode
svn-id: r44037
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/lol.h1
-rw-r--r--engines/kyra/script_lol.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h
index 4a00bb8d6c..dc90879718 100644
--- a/engines/kyra/lol.h
+++ b/engines/kyra/lol.h
@@ -797,6 +797,7 @@ private:
int olol_findInventoryItem(EMCState *script);
int olol_restoreFadePalette(EMCState *script);
int olol_getSelectedCharacter(EMCState *script);
+ int olol_setHandItem(EMCState *script);
int olol_drinkBezelCup(EMCState *script);
int olol_changeItemTypeOrFlag(EMCState *script);
int olol_placeInventoryItemInHand(EMCState *script);
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index e710a184cf..b6fcc6cf48 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -2018,6 +2018,12 @@ int LoLEngine::olol_getSelectedCharacter(EMCState *script) {
return _selectedCharacter;
}
+int LoLEngine::olol_setHandItem(EMCState *script) {
+ debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_setHandItem(%p) (%d)", (const void *)script, stackPos(0));
+ setHandItem(stackPos(0));
+ return 1;
+}
+
int LoLEngine::olol_drinkBezelCup(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_drinkBezelCup(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
drinkBezelCup(3 - stackPos(0), stackPos(1));
@@ -2887,7 +2893,7 @@ void LoLEngine::setupOpcodeTable() {
// 0xA8
Opcode(olol_getSelectedCharacter);
- OpcodeUnImpl();
+ Opcode(olol_setHandItem);
Opcode(olol_drinkBezelCup);
Opcode(olol_changeItemTypeOrFlag);