- Removed the unused selectors "prevSignal", "who" and "distance" from the quick access selector array
- Added the "motionCue" and "egoMoveSpeed" selectors to the selector array, to limit the places where findSelector() is used only in debugging functions - Reordered the selector initialization in mapSelectors(), so that their order matches the order found in vocab.997 svn-id: r43779
This commit is contained in:
parent
97c2a8cb89
commit
af2668145a
3 changed files with 81 additions and 56 deletions
|
@ -397,7 +397,7 @@ void Kernel::detectSciFeatures() {
|
|||
if (version == SCI_VERSION_0_EARLY) {
|
||||
features |= kFeatureOldScriptHeader | kFeatureOldGfxFunctions;
|
||||
} else if (version == SCI_VERSION_0_LATE) {
|
||||
if (findSelector("motionCue") == -1)
|
||||
if (_selectorMap.motionCue == -1)
|
||||
features |= kFeatureOldGfxFunctions;
|
||||
}
|
||||
|
||||
|
@ -407,7 +407,7 @@ void Kernel::detectSciFeatures() {
|
|||
features |= kFeatureLofsAbsolute;
|
||||
} else if (version == SCI_VERSION_1_EARLY) {
|
||||
// Use heuristic
|
||||
if (findSelector("egoMoveSpeed") != -1)
|
||||
if (_selectorMap.egoMoveSpeed != -1)
|
||||
features |= kFeatureLofsAbsolute;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue