cleanup: encapsulate some more members of class Actor, and rename newDirection -> targetFacing (since it corresponds to the future value of 'facing'; the distinction between 'facing' and 'direction' is extremly fuzzy)
svn-id: r9175
This commit is contained in:
parent
be7597a8c9
commit
becd70d243
11 changed files with 45 additions and 44 deletions
|
@ -1241,7 +1241,7 @@ int Scumm::getObjOldDir(int obj) {
|
|||
int Scumm::getObjNewDir(int obj) {
|
||||
int dir;
|
||||
if (obj < _numActors) {
|
||||
dir = derefActor(obj, "getObjNewDir")->facing;
|
||||
dir = derefActor(obj, "getObjNewDir")->getFacing();
|
||||
} else {
|
||||
int x, y;
|
||||
getObjectXYPos(obj, x, y, dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue