aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/object.cpp
diff options
context:
space:
mode:
authorMax Horn2011-12-28 16:21:30 +0100
committerMax Horn2011-12-28 16:36:16 +0100
commitca7da4cffc7edacd90df408c441a6eca10cc0e55 (patch)
treee00656aca9b15f0309aafbf67e0126942c340bd2 /engines/dreamweb/object.cpp
parentc10ea611e8058958a606ff4478871e7909d882d9 (diff)
downloadscummvm-rg350-ca7da4cffc7edacd90df408c441a6eca10cc0e55.tar.gz
scummvm-rg350-ca7da4cffc7edacd90df408c441a6eca10cc0e55.tar.bz2
scummvm-rg350-ca7da4cffc7edacd90df408c441a6eca10cc0e55.zip
DREAMWEB: Rename a member of SetObject & DynObject to objId
SetObject::name and DynObject::id are stored at the exact same offset, and have the exact same meaning (see also objectMatches()). Now they also have the same name, objId.
Diffstat (limited to 'engines/dreamweb/object.cpp')
-rw-r--r--engines/dreamweb/object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dreamweb/object.cpp b/engines/dreamweb/object.cpp
index 8e6436c100..8d4f9bf84a 100644
--- a/engines/dreamweb/object.cpp
+++ b/engines/dreamweb/object.cpp
@@ -57,7 +57,7 @@ void DreamWebEngine::fillRyan() {
}
bool DreamWebEngine::isItWorn(const DynObject *object) {
- return (object->id[0] == 'W'-'A') && (object->id[1] == 'E'-'A');
+ return (object->objId[0] == 'W'-'A') && (object->objId[1] == 'E'-'A');
}
void DreamWebEngine::wornError() {
@@ -74,8 +74,8 @@ void DreamWebEngine::wornError() {
}
void DreamWebEngine::makeWorn(DynObject *object) {
- object->id[0] = 'W'-'A';
- object->id[1] = 'E'-'A';
+ object->objId[0] = 'W'-'A';
+ object->objId[1] = 'E'-'A';
}
void DreamWebEngine::obToInv(uint8 index, uint8 flag, uint16 x, uint16 y) {