aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/scene.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2009-11-08 23:56:06 +0000
committerVladimir Menshakov2009-11-08 23:56:06 +0000
commit99b68b3a1349f41ea149e48192d750361c088cba (patch)
treeb38f3d5afcc755472daae747499f0df768d485e9 /engines/teenagent/scene.cpp
parent83713e92fac141bfdf79e81ca30d79bed9d1a44e (diff)
downloadscummvm-rg350-99b68b3a1349f41ea149e48192d750361c088cba.tar.gz
scummvm-rg350-99b68b3a1349f41ea149e48192d750361c088cba.tar.bz2
scummvm-rg350-99b68b3a1349f41ea149e48192d750361c088cba.zip
fixed boat bug
svn-id: r45770
Diffstat (limited to 'engines/teenagent/scene.cpp')
-rw-r--r--engines/teenagent/scene.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index b1abd902e8..a7f3ae0919 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -383,6 +383,13 @@ bool Scene::render(OSystem *system) {
Graphics::Surface *surface = system->lockScreen();
+ //render on
+ if (on.pixels != NULL) {
+ if (_id != 16 || getOns(16)[0] != 0) {
+ on.render(surface); //do not render boat on isle. I double checked all callbacks, there's no code switching off the boat :(
+ }
+ }
+
if (ons != NULL) {
for (uint32 i = 0; i < ons_count; ++i) {
Surface *s = ons + i;
@@ -488,10 +495,6 @@ bool Scene::render(OSystem *system) {
}
}
- //render on
- if (on.pixels != NULL) {
- on.render(surface);
- }
if (!message.empty()) {
bool visible = true;