aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
authorMax Horn2003-07-24 17:44:00 +0000
committerMax Horn2003-07-24 17:44:00 +0000
commitbecd70d243d456af9595ae0cc37e72b1489736c5 (patch)
treef37f054d6b2808b9cd7d4241dbb7a0b0ccc2acbe /scumm/object.cpp
parentbe7597a8c9e406f798b0ebcea7c131825366582b (diff)
downloadscummvm-rg350-becd70d243d456af9595ae0cc37e72b1489736c5.tar.gz
scummvm-rg350-becd70d243d456af9595ae0cc37e72b1489736c5.tar.bz2
scummvm-rg350-becd70d243d456af9595ae0cc37e72b1489736c5.zip
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
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index c3f613c5a5..21044fdbe4 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -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);