diff options
author | Filippos Karapetis | 2010-09-09 07:42:25 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-09 07:42:25 +0000 |
commit | 9313e169fd7fc8efde6a8ae63cbb2599f83856b7 (patch) | |
tree | 30d80bd2ff68dfe7630ef91f5558994bbc0727ee /engines | |
parent | 873d794a6c7259b071a49d98f6b6ef031778b9f7 (diff) | |
download | scummvm-rg350-9313e169fd7fc8efde6a8ae63cbb2599f83856b7.tar.gz scummvm-rg350-9313e169fd7fc8efde6a8ae63cbb2599f83856b7.tar.bz2 scummvm-rg350-9313e169fd7fc8efde6a8ae63cbb2599f83856b7.zip |
SCI: Enabled the static selector remap code for SCI2+. The Torin demo works again
svn-id: r52647
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/static_selectors.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index 208991237a..7cf78af4d1 100644 --- a/engines/sci/engine/static_selectors.cpp +++ b/engines/sci/engine/static_selectors.cpp @@ -155,15 +155,6 @@ Common::StringArray Kernel::checkStaticSelectorNames() { names[i] = sci1Selectors[i - count]; } - for (const SelectorRemap *selectorRemap = sciSelectorRemap; selectorRemap->slot; ++selectorRemap) { - if (getSciVersion() >= selectorRemap->minVersion && getSciVersion() <= selectorRemap->maxVersion) { - const uint32 slot = selectorRemap->slot; - if (slot >= names.size()) - names.resize(slot + 1); - names[slot] = selectorRemap->name; - } - } - // Now, we need to find out selectors which keep changing place... // We do that by dissecting game objects, and looking for selectors at // specified locations. @@ -275,6 +266,15 @@ Common::StringArray Kernel::checkStaticSelectorNames() { #endif } + for (const SelectorRemap *selectorRemap = sciSelectorRemap; selectorRemap->slot; ++selectorRemap) { + if (getSciVersion() >= selectorRemap->minVersion && getSciVersion() <= selectorRemap->maxVersion) { + const uint32 slot = selectorRemap->slot; + if (slot >= names.size()) + names.resize(slot + 1); + names[slot] = selectorRemap->name; + } + } + return names; } |