diff options
author | Vladimir Menshakov | 2010-03-20 23:04:18 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-03-20 23:04:18 +0000 |
commit | 109dbcbca6731b0e07163da69bb73ce58702d614 (patch) | |
tree | 98ffd76c1e0007f5f48b9b46766735adb898658f | |
parent | 933299f6b9360299e5799d835d1cff7acfe93cf6 (diff) | |
download | scummvm-rg350-109dbcbca6731b0e07163da69bb73ce58702d614.tar.gz scummvm-rg350-109dbcbca6731b0e07163da69bb73ce58702d614.tar.bz2 scummvm-rg350-109dbcbca6731b0e07163da69bb73ce58702d614.zip |
reverted inventory objects patch, added mark's animation z-order patch.
svn-id: r48342
-rw-r--r-- | engines/teenagent/inventory.cpp | 2 | ||||
-rw-r--r-- | engines/teenagent/scene.cpp | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/engines/teenagent/inventory.cpp b/engines/teenagent/inventory.cpp index b0fe6a009a..193c413367 100644 --- a/engines/teenagent/inventory.cpp +++ b/engines/teenagent/inventory.cpp @@ -62,7 +62,7 @@ void Inventory::init(TeenAgentEngine *engine) { offset[92] = items_size; Resources *res = Resources::instance(); - for (byte i = 0; i < 92; ++i) { + for (byte i = 0; i <= 92; ++i) { InventoryObject io; uint16 obj_addr = res->dseg.get_word(0xc4a4 + i * 2); if (obj_addr != 0) diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index b406bcc00a..2e2571bd96 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -731,6 +731,10 @@ bool Scene::render(bool tick_game, bool tick_mark, uint32 delta) { s->render(surface); } + if (mark != NULL && debug_features.feature[DebugFeatures::kShowOn]) { + on.render(surface, actor_animation_position); + } + if (mark != NULL) { actor_animation_position = mark->render(surface); if (!actor_animation.ignore) @@ -809,7 +813,7 @@ bool Scene::render(bool tick_game, bool tick_mark, uint32 delta) { } //removed mark == null. In final scene of chapter 2 mark rendered above table. //if it'd cause any bugs, add hack here. (_id != 23 && mark == NULL) - if (debug_features.feature[DebugFeatures::kShowOn]) { + if (mark == NULL && debug_features.feature[DebugFeatures::kShowOn]) { on.render(surface, actor_animation_position); } |