diff options
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 7a0ac33e98..97b8dc36c9 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->getDisplayWidth() - 5) || + if ((point.x < 5) || (point.x >= _vm->getDisplayInfo().logicalWidth - 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->getDisplayWidth() + 31) * 4); + newLocation.x = CLIP<int>(newLocation.x, -31 * 4, (_vm->getDisplayInfo().logicalWidth + 31) * 4); return actorWalkTo(actor->_id, newLocation); } |