Implemented opcode 66: o3_removeItemSlot.
svn-id: r31957
This commit is contained in:
parent
b53fe83695
commit
bdadf34f16
2 changed files with 9 additions and 1 deletions
|
@ -548,6 +548,7 @@ private:
|
|||
int o3_drawSceneShapeOnPage(EMCState *script);
|
||||
int o3_checkInRect(EMCState *script);
|
||||
int o3_updateConversations(EMCState *script);
|
||||
int o3_removeItemSlot(EMCState *script);
|
||||
int o3_setSceneDim(EMCState *script);
|
||||
int o3_setSceneAnimPosAndFrame(EMCState *script);
|
||||
int o3_removeItemInstances(EMCState *script);
|
||||
|
|
|
@ -588,6 +588,13 @@ int KyraEngine_MR::o3_updateConversations(EMCState *script) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int KyraEngine_MR::o3_removeItemSlot(EMCState *script) {
|
||||
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_MR::o3_removeItemSlot(%p) (%d)", (const void *)script, stackPos(0));
|
||||
deleteItemAnimEntry(stackPos(0));
|
||||
_itemList[stackPos(0)].id = 0xFFFF;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int KyraEngine_MR::o3_setSceneDim(EMCState *script) {
|
||||
debugC(3, kDebugLevelScriptFuncs, "KyraEngine_MR::o3_setSceneDim(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
|
||||
_sceneMinX = stackPos(0);
|
||||
|
@ -1220,7 +1227,7 @@ void KyraEngine_MR::setupOpcodeTable() {
|
|||
// 0x40
|
||||
Opcode(o3_checkInRect);
|
||||
Opcode(o3_updateConversations);
|
||||
OpcodeUnImpl();
|
||||
Opcode(o3_removeItemSlot);
|
||||
Opcode(o3_dummy);
|
||||
// 0x44
|
||||
Opcode(o3_dummy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue