aboutsummaryrefslogtreecommitdiff
path: root/scumm/script.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-09-19 00:15:17 +0000
committerEugene Sandulenko2004-09-19 00:15:17 +0000
commit64043ff1fc713e0b215d1c802de6d2f1bee53efc (patch)
tree79ecfb61976bd87d8af14be88902ecf64bd026b4 /scumm/script.cpp
parent4869c2f9c1fe850b57e520b7001e6eebd5a3bd14 (diff)
downloadscummvm-rg350-64043ff1fc713e0b215d1c802de6d2f1bee53efc.tar.gz
scummvm-rg350-64043ff1fc713e0b215d1c802de6d2f1bee53efc.tar.bz2
scummvm-rg350-64043ff1fc713e0b215d1c802de6d2f1bee53efc.zip
Removed some not necessary #defines which could (and did) lead to program
logic misinterpretation. I assume these were added for readability, but (a) names suggestet that they're class variables but they didn't (b) their use wasn't consistent, i.e. there were places where variables were used directly, not by means of the macros (c) they didn't save that much space because they are used in few places. svn-id: r15179
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r--scumm/script.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp
index 9646cce2a3..040ccf9591 100644
--- a/scumm/script.cpp
+++ b/scumm/script.cpp
@@ -382,7 +382,7 @@ void ScummEngine::getScriptBaseAddress() {
break;
_scriptOrgPointer = getResourceAddress(rtInventory, idx);
assert(idx < _numInventory);
- _lastCodePtr = &_baseInventoryItems[idx];
+ _lastCodePtr = &res.address[rtInventory][idx];
break;
case WIO_LOCAL:
@@ -394,14 +394,14 @@ void ScummEngine::getScriptBaseAddress() {
} else {
_scriptOrgPointer = getResourceAddress(rtRoom, _roomResource);
assert(_roomResource < _numRooms);
- _lastCodePtr = &_baseRooms[_roomResource];
+ _lastCodePtr = &res.address[rtRoom][_roomResource];
}
break;
case WIO_GLOBAL: /* global script */
_scriptOrgPointer = getResourceAddress(rtScript, ss->number);
assert(ss->number < _numScripts);
- _lastCodePtr = &_baseScripts[ss->number];
+ _lastCodePtr = &res.address[rtScript][ss->number];
break;
case WIO_FLOBJECT: /* flobject script */
@@ -410,7 +410,7 @@ void ScummEngine::getScriptBaseAddress() {
idx = _objs[idx].fl_object_index;
_scriptOrgPointer = getResourceAddress(rtFlObject, idx);
assert(idx < _numFlObject);
- _lastCodePtr = &_baseFLObject[idx];
+ _lastCodePtr = &res.address[rtFlObject][idx];
break;
default:
error("Bad type while getting base address");