diff options
author | Max Horn | 2009-10-14 09:37:22 +0000 |
---|---|---|
committer | Max Horn | 2009-10-14 09:37:22 +0000 |
commit | 5ea978f63a7835de5ed1c8a6b4af269b27511ba8 (patch) | |
tree | 1b77d3bea363519fdba70db1f3e39b82e278eeda /engines/sci/engine | |
parent | 28034ef29834a8406b69bbf2a665eed061581da1 (diff) | |
download | scummvm-rg350-5ea978f63a7835de5ed1c8a6b4af269b27511ba8.tar.gz scummvm-rg350-5ea978f63a7835de5ed1c8a6b4af269b27511ba8.tar.bz2 scummvm-rg350-5ea978f63a7835de5ed1c8a6b4af269b27511ba8.zip |
SCI: Rename some vars (cleaning up what seems to have been caused by a blind global search & replace)
svn-id: r45060
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/seg_manager.cpp | 12 | ||||
-rw-r--r-- | engines/sci/engine/vm.cpp | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp index dd635d2146..3cb4a5d0f1 100644 --- a/engines/sci/engine/seg_manager.cpp +++ b/engines/sci/engine/seg_manager.cpp @@ -660,9 +660,9 @@ void SegManager::scriptInitialiseObjectsSci11(SegmentId seg) { #if 0 if (obj->_variables[5].offset != 0xffff) { obj->_variables[5] = INST_LOOKUP_CLASS(obj->_variables[5].offset); - _baseObj = getObject(obj->_variables[5]); - obj->variable_names_nr = _baseObj->variables_nr; - obj->_baseObj = _baseObj->_baseObj; + baseObj = getObject(obj->_variables[5]); + obj->variable_names_nr = baseObj->variables_nr; + obj->_baseObj = baseObj->_baseObj; } #endif @@ -796,9 +796,9 @@ void SegManager::reconstructClones() { continue; CloneTable::Entry &seeker = ct->_table[j]; - Object *_baseObj = getObject(seeker.getSpeciesSelector()); - seeker.cloneFromObject(_baseObj); - if (!_baseObj) + Object *baseObj = getObject(seeker.getSpeciesSelector()); + seeker.cloneFromObject(baseObj); + if (!baseObj) warning("Clone entry without a base class: %d", j); } // end for } // end if diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index f534a1945d..c70fbbb764 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -1597,9 +1597,9 @@ int script_instantiate_sci0(ResourceManager *resMan, SegManager *segMan, int scr // Instantiate the superclass, if neccessary obj->setSpeciesSelector(INST_LOOKUP_CLASS(obj->getSpeciesSelector().offset)); - Object *_baseObj = segMan->getObject(obj->getSpeciesSelector()); - obj->setVarCount(_baseObj->getVarCount()); - obj->_baseObj = _baseObj->_baseObj; + Object *baseObj = segMan->getObject(obj->getSpeciesSelector()); + obj->setVarCount(baseObj->getVarCount()); + obj->_baseObj = baseObj->_baseObj; // Copy base from species class, as we need its selector IDs obj->setSuperClassSelector(INST_LOOKUP_CLASS(obj->getSuperClassSelector().offset)); |