Implemented opcode 66: o3_removeItemSlot.

svn-id: r31957
This commit is contained in:
Johannes Schickel 2008-05-08 22:10:34 +00:00
parent b53fe83695
commit bdadf34f16
2 changed files with 9 additions and 1 deletions

View file

@ -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);

View file

@ -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);