aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/scene.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2009-12-12 13:12:30 +0000
committerVladimir Menshakov2009-12-12 13:12:30 +0000
commitf34d55211147d3753476df3daa19003d6d139a2d (patch)
tree99c130cda0627803708b4016ded9bf74c68ceb07 /engines/teenagent/scene.cpp
parent100805144ab212b958159a733f35a0754db8b16a (diff)
downloadscummvm-rg350-f34d55211147d3753476df3daa19003d6d139a2d.tar.gz
scummvm-rg350-f34d55211147d3753476df3daa19003d6d139a2d.tar.bz2
scummvm-rg350-f34d55211147d3753476df3daa19003d6d139a2d.zip
moved 'on' surfaces rendering into mark's code
svn-id: r46342
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r--engines/teenagent/scene.cpp17
1 files 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) {