diff options
author | Max Horn | 2003-09-14 18:16:45 +0000 |
---|---|---|
committer | Max Horn | 2003-09-14 18:16:45 +0000 |
commit | 6512592d0f0be9afcc0f3aa30b1b505490ebea54 (patch) | |
tree | 59eb579d38946c02e2d579de1c6d106ecacf4114 /scumm/script_v6.cpp | |
parent | fd7727e9d2a5414e021439eb88d30ca687ac691e (diff) | |
download | scummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.tar.gz scummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.tar.bz2 scummvm-rg350-6512592d0f0be9afcc0f3aa30b1b505490ebea54.zip |
moved Actor x/y to _pos.x/_pos.y -> this makes it much easier to grep for access of the actor position
svn-id: r10253
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index ebf8d7358d..7d4be06aea 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -1023,9 +1023,9 @@ void Scumm_v6::o6_walkActorToObj() { dist = a2->scalex * a2->width / 0xFF; dist += dist / 2; } - x = a2->x; - y = a2->y; - if (x < a->x) + x = a2->_pos.x; + y = a2->_pos.y; + if (x < a->_pos.x) x += dist; else x -= dist; @@ -1161,7 +1161,7 @@ void Scumm_v6::o6_loadRoomWithEgo() { VAR(VAR_WALKTO_OBJ) = 0; if (_version == 6) { - setCameraAt(a->x, a->y); + setCameraAt(a->_pos.x, a->_pos.y); setCameraFollows(a); } @@ -1267,7 +1267,7 @@ void Scumm_v6::o6_getAnimateVariable() { void Scumm_v6::o6_isActorInBox() { int box = pop(); Actor *a = derefActor(pop(), "o6_isActorInBox"); - push(checkXYInBoxBounds(box, a->x, a->y)); + push(checkXYInBoxBounds(box, a->_pos.x, a->_pos.y)); } void Scumm_v6::o6_getActorLayer() { @@ -1715,7 +1715,7 @@ void Scumm_v6::o6_actorOps() { else a->forceClip = 0; if (a->isInCurrentRoom()) - a->putActor(a->x, a->y, a->room); + a->putActor(a->_pos.x, a->_pos.y, a->room); break; case 96: a->ignoreBoxes = 0; @@ -1724,7 +1724,7 @@ void Scumm_v6::o6_actorOps() { else a->forceClip = 0; if (a->isInCurrentRoom()) - a->putActor(a->x, a->y, a->room); + a->putActor(a->_pos.x, a->_pos.y, a->room); break; case 97: a->setAnimSpeed(pop()); |