From 56f43eff10a038a67954cd4ccc6990bb70fa6740 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 30 Apr 2015 10:24:18 -1000 Subject: SHERLOCK: Fix loading scenes with initially hidden objects --- engines/sherlock/scene.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sherlock') 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; } } -- cgit v1.2.3