diff options
Diffstat (limited to 'engines/sci/engine/selector.cpp')
-rw-r--r-- | engines/sci/engine/selector.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/engines/sci/engine/selector.cpp b/engines/sci/engine/selector.cpp index 5bfc73b801..7f509f3968 100644 --- a/engines/sci/engine/selector.cpp +++ b/engines/sci/engine/selector.cpp @@ -231,16 +231,7 @@ reg_t readSelector(SegManager *segMan, reg_t object, Selector selectorId) { #ifdef ENABLE_SCI32 void updateInfoFlagViewVisible(Object *obj, int index) { - int minIndex, maxIndex; - if (g_sci->_features->usesAlternateSelectors()) { - minIndex = 24; - maxIndex = 43; - } else { - minIndex = 26; - maxIndex = 44; - } - - if (index >= minIndex && index <= maxIndex && getSciVersion() >= SCI_VERSION_2) { + if (getSciVersion() >= SCI_VERSION_2 && obj->mustSetViewVisible(index)) { obj->setInfoSelectorFlag(kInfoFlagViewVisible); } } |