aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/actor_walk.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-21 22:52:44 +0000
committerFilippos Karapetis2008-12-21 22:52:44 +0000
commit2257db88d3b7923f4cf97b81a4a62ab68f5c5ec0 (patch)
tree868e9b76068bd9a2d9b10ffe2e022f65afb87b51 /engines/saga/actor_walk.cpp
parentf6547e0691b59a4450c8c0683fccbd8d568e292f (diff)
downloadscummvm-rg350-2257db88d3b7923f4cf97b81a4a62ab68f5c5ec0.tar.gz
scummvm-rg350-2257db88d3b7923f4cf97b81a4a62ab68f5c5ec0.tar.bz2
scummvm-rg350-2257db88d3b7923f4cf97b81a4a62ab68f5c5ec0.zip
- Added some stubs for the SAGA2 games dino and fta2
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM) - Removed getDisplayWidth() and getDisplayHeight() svn-id: r35473
Diffstat (limited to 'engines/saga/actor_walk.cpp')
-rw-r--r--engines/saga/actor_walk.cpp4
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);
}