diff options
author | Johannes Schickel | 2005-12-08 17:19:18 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-12-08 17:19:18 +0000 |
commit | bce163c3cb71b88ff62907e8c0a6d7661863dfe7 (patch) | |
tree | 46b4d30af4f27223e5d918e56388ee236fd6b6c2 /kyra/script_v1.cpp | |
parent | 3878231019a0381e8cec537dbd55f69743eacce6 (diff) | |
download | scummvm-rg350-bce163c3cb71b88ff62907e8c0a6d7661863dfe7.tar.gz scummvm-rg350-bce163c3cb71b88ff62907e8c0a6d7661863dfe7.tar.bz2 scummvm-rg350-bce163c3cb71b88ff62907e8c0a6d7661863dfe7.zip |
Fixed bug with item drawing.
Added support for item placing. (not user input controlled)
svn-id: r19761
Diffstat (limited to 'kyra/script_v1.cpp')
-rw-r--r-- | kyra/script_v1.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kyra/script_v1.cpp b/kyra/script_v1.cpp index 7d82bc3687..e3ea0ff215 100644 --- a/kyra/script_v1.cpp +++ b/kyra/script_v1.cpp @@ -421,9 +421,8 @@ int KyraEngine::cmd_dropItemInScene(ScriptState *script) { room->itemsYPos[freeItem] = ypos; room->itemsTable[freeItem] = item; - warning("PARTIALLY IMPLEMENTED: cmd_dropItemInScene"); - // XXX animAddGameItem - // XXX updateAllObjectShapes + animAddGameItem(sceneId, freeItem); + updateAllObjectShapes(); } else { if (item == 43) { placeItemInGenericMapScene(item, 0); @@ -1331,8 +1330,8 @@ int KyraEngine::cmd_setIdolGem(ScriptState *script) { } int KyraEngine::cmd_totalItemsInScene(ScriptState *script) { - warning("STUB: cmd_totalItemsInScene"); - return 0; + debug(3, "cmd_totalItemsInScene(0x%X) (%d)", script, stackPos(0)); + return countItemsInScene(stackPos(0)); } int KyraEngine::cmd_restoreBrandonsMovementDelay(ScriptState *script) { @@ -1364,7 +1363,8 @@ int KyraEngine::cmd_setEntranceMouseCursorTrack(ScriptState *script) { } int KyraEngine::cmd_itemAppearsOnGround(ScriptState *script) { - warning("STUB: cmd_itemAppearsOnGround"); + debug(3, "cmd_itemAppearsOnGround(0x%X) (%d, %d, %d)", script, stackPos(0), stackPos(1), stackPos(2)); + unkItemFunction(_currentCharacter->sceneId, stackPos(0), stackPos(1), stackPos(2), 2, 0); return 0; } |