From f34d55211147d3753476df3daa19003d6d139a2d Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Sat, 12 Dec 2009 13:12:30 +0000 Subject: moved 'on' surfaces rendering into mark's code svn-id: r46342 --- engines/teenagent/scene.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 0ade44f431..463f1460e0 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -632,6 +632,11 @@ bool Scene::render(OSystem *system) { (ABS(dp.x) < speed_x? dp.x: SIGN(dp.x) * speed_x); actor_animation_position = teenagent.render(surface, position, o, 1, false, zoom); + //render on + if (debug_features.feature[DebugFeatures::kShowOn]) { + on.render(surface, actor_animation_position); + } + if (position == destination) { path.pop_front(); if (path.empty()) { @@ -644,16 +649,16 @@ bool Scene::render(OSystem *system) { busy = true; } else busy = true; - } else + } else { actor_animation_position = teenagent.render(surface, position, orientation, 0, actor_talking, zoom); + //render on + if (debug_features.feature[DebugFeatures::kShowOn]) { + on.render(surface, actor_animation_position); + } + } } } - //render on - if (debug_features.feature[DebugFeatures::kShowOn]) { - on.render(surface, actor_animation_position); - } - if (!message.empty()) { bool visible = true; if (message_first_frame != 0 && message_animation != NULL) { -- cgit v1.2.3