From 72cb0036a3780ef89fa94cc92cbdf4da37d8fc56 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Sat, 12 Dec 2009 10:57:38 +0000 Subject: reverted the latest patch svn-id: r46336 --- engines/teenagent/scene.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index a8cda4b2a5..dfe74fc0e8 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -535,6 +535,14 @@ bool Scene::render(OSystem *system) { bool got_any_animation = false; + if (ons != NULL && debug_features.feature[DebugFeatures::kShowOns]) { + for (uint32 i = 0; i < ons_count; ++i) { + Surface *s = ons + i; + if (s != NULL) + s->render(surface); + } + } + for (byte i = 0; i < 4; ++i) { Animation *a = custom_animation + i; Surface *s = a->currentFrame(); @@ -654,14 +662,6 @@ bool Scene::render(OSystem *system) { } } - if (ons != NULL && debug_features.feature[DebugFeatures::kShowOns]) { - for (uint32 i = 0; i < ons_count; ++i) { - Surface *s = ons + i; - if (s != NULL) - s->render(surface); - } - } - if (!message.empty()) { bool visible = true; if (message_first_frame != 0 && message_animation != NULL) { -- cgit v1.2.3