diff options
-rw-r--r-- | engines/sci/graphics/screen_item32.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/graphics/screen_item32.cpp b/engines/sci/graphics/screen_item32.cpp index 6b169be6ac..98d65406a6 100644 --- a/engines/sci/graphics/screen_item32.cpp +++ b/engines/sci/graphics/screen_item32.cpp @@ -202,6 +202,15 @@ void ScreenItem::setFromObject(SegManager *segMan, const reg_t object, const boo writeSelectorValue(segMan, object, SELECTOR(priority), _position.y); } + // Check if the entry should be hidden + // TODO: Verify this against disassembly! + if (lookupSelector(segMan, object, SELECTOR(visible), NULL, NULL) != kSelectorNone) { + if (readSelectorValue(segMan, object, SELECTOR(visible)) == 0) { + _fixPriority = true; + _priority = -1; + } + } + _z = readSelectorValue(segMan, object, SELECTOR(z)); _position.y -= _z; |