diff options
| author | Colin Snover | 2017-04-01 22:01:22 -0500 |
|---|---|---|
| committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
| commit | 3d4fb4ccb4f8bed013e6be9f9c677a071e84266d (patch) | |
| tree | 21fba33cf1f41ef856c6386e181b09fad17066e0 /engines/sci/engine/selector.h | |
| parent | 1962b1bb6d495365110094f200d50cc4cb303b75 (diff) | |
| download | scummvm-rg350-3d4fb4ccb4f8bed013e6be9f9c677a071e84266d.tar.gz scummvm-rg350-3d4fb4ccb4f8bed013e6be9f9c677a071e84266d.tar.bz2 scummvm-rg350-3d4fb4ccb4f8bed013e6be9f9c677a071e84266d.zip | |
SCI32: Fix mustSetViewVisible for SCI3
In SCI2/2.1, variable indexes are used along with a range encoded
in the interpreter executable to determine whether an object
variable is a view-related variable. Operands to aTop, sTop, ipToa,
dpToa, ipTos, and dpTos are byte offsets into an object, which
are divided by two to get the varindex to check against the
interpreter range.
In SCI3, objects in game scripts contain groups of 32 selectors,
and each group has a flag that says whether or not the selectors
in that group are view-related. Operands to aTop, sTop, ipToa,
dpToa, ipTos, and dpTos are selectors.
Diffstat (limited to 'engines/sci/engine/selector.h')
| -rw-r--r-- | engines/sci/engine/selector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/selector.h b/engines/sci/engine/selector.h index f2e4ec0b7f..c6ecd9dd26 100644 --- a/engines/sci/engine/selector.h +++ b/engines/sci/engine/selector.h @@ -218,7 +218,7 @@ void invokeSelector(EngineState *s, reg_t object, int selectorId, * This function checks if index is in the right range, and sets the flag * on obj.-info- if it is. */ -void updateInfoFlagViewVisible(Object *obj, int index); +void updateInfoFlagViewVisible(Object *obj, int index, bool fromPropertyOp = false); #endif } // End of namespace Sci |
