diff options
author | Colin Snover | 2017-02-08 21:45:40 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
commit | 82994609177c30b69f2be155670253b63469d876 (patch) | |
tree | a66918a96ef8103bb22d718780f94b08f2827111 /engines/sci/engine/selector.cpp | |
parent | 5c5e485ff0a48b4aee279ae746941339d881914c (diff) | |
download | scummvm-rg350-82994609177c30b69f2be155670253b63469d876.tar.gz scummvm-rg350-82994609177c30b69f2be155670253b63469d876.tar.bz2 scummvm-rg350-82994609177c30b69f2be155670253b63469d876.zip |
SCI32: Hook up mustSetViewVisible for SCI3
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); } } |