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_v5.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_v5.cpp')
| -rw-r--r-- | scumm/script_v5.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index fa1075a23a..e8770fb9f8 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -512,7 +512,7 @@ void Scumm_v5::o5_actorSet() { a->ignoreBoxes = !(_opcode & 1); 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 22: /* animspeed */ @@ -1327,7 +1327,7 @@ void Scumm_v5::o5_isActorInBox() { int box = getVarOrDirectByte(0x40); Actor *a = derefActor(act, "o5_isActorInBox"); - if (!checkXYInBoxBounds(box, a->x, a->y)) + if (!checkXYInBoxBounds(box, a->_pos.x, a->_pos.y)) o5_jumpRelative(); else ignoreScriptWord(); @@ -1489,9 +1489,9 @@ void Scumm_v5::o5_loadRoomWithEgo() { } // FIXME: Can this be removed? - camera._cur.x = a->x; + camera._cur.x = a->_pos.x; - setCameraAt(a->x, a->y); + setCameraAt(a->_pos.x, a->_pos.y); setCameraFollows(a); _fullRedraw = 1; @@ -2662,9 +2662,9 @@ void Scumm_v5::o5_walkActorToActor() { dist = a->scalex * a->width / 0xFF; dist += (a2->scalex * a2->width / 0xFF) / 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; |
