aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-04-30 10:24:18 -1000
committerPaul Gilbert2015-04-30 10:24:18 -1000
commit56f43eff10a038a67954cd4ccc6990bb70fa6740 (patch)
tree6c82d57f0966a4a2e22ddf044f07c485d9019346
parent7ca3b75805eb404ad7f5ae01ba3000593e8eaf36 (diff)
downloadscummvm-rg350-56f43eff10a038a67954cd4ccc6990bb70fa6740.tar.gz
scummvm-rg350-56f43eff10a038a67954cd4ccc6990bb70fa6740.tar.bz2
scummvm-rg350-56f43eff10a038a67954cd4ccc6990bb70fa6740.zip
SHERLOCK: Fix loading scenes with initially hidden objects
-rw-r--r--engines/sherlock/scene.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index f6fe8c8671..1d00e9d23d 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -414,6 +414,9 @@ bool Scene::loadScene(const Common::String &filename) {
if (_bgShapes[idx]._type != HIDDEN && (_bgShapes[idx]._flags & 0x40) &&
_bgShapes[idx]._type != INVALID)
_bgShapes[idx].toggleHidden();
+ if (_bgShapes[idx]._type == HIDE_SHAPE)
+ // Hiding isn't needed, since objects aren't drawn yet
+ _bgShapes[idx]._type = HIDDEN;
}
}