diff options
author | Filippos Karapetis | 2008-12-22 14:36:58 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-12-22 14:36:58 +0000 |
commit | 9a57f4239919370dd323d3962147daef91e32394 (patch) | |
tree | b265200c370b52574a8eaee9a271f3061626c8a2 /engines/saga/actor_walk.cpp | |
parent | 3e0b81a99e47265eb793bbc58ac95825cbbc796f (diff) | |
download | scummvm-rg350-9a57f4239919370dd323d3962147daef91e32394.tar.gz scummvm-rg350-9a57f4239919370dd323d3962147daef91e32394.tar.bz2 scummvm-rg350-9a57f4239919370dd323d3962147daef91e32394.zip |
logicalWidth -> width
logicalHeight -> height
svn-id: r35488
Diffstat (limited to 'engines/saga/actor_walk.cpp')
-rw-r--r-- | engines/saga/actor_walk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/actor_walk.cpp b/engines/saga/actor_walk.cpp index 97b8dc36c9..21643ac1de 100644 --- a/engines/saga/actor_walk.cpp +++ b/engines/saga/actor_walk.cpp @@ -101,7 +101,7 @@ bool Actor::validFollowerLocation(const Location &location) { Point point; location.toScreenPointXY(point); - if ((point.x < 5) || (point.x >= _vm->getDisplayInfo().logicalWidth - 5) || + if ((point.x < 5) || (point.x >= _vm->getDisplayInfo().width - 5) || (point.y < 0) || (point.y > _vm->_scene->getHeight())) { return false; } @@ -856,7 +856,7 @@ bool Actor::followProtagonist(ActorData *actor) { newLocation.y += _vm->_rnd.getRandomNumber(prefer1.y - 1) - prefer1.y / 2; } - newLocation.x = CLIP<int>(newLocation.x, -31 * 4, (_vm->getDisplayInfo().logicalWidth + 31) * 4); + newLocation.x = CLIP<int>(newLocation.x, -31 * 4, (_vm->getDisplayInfo().width + 31) * 4); return actorWalkTo(actor->_id, newLocation); } |