aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/actor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index e6f4b0bddc..c8baf995e9 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1196,8 +1196,12 @@ void Actor::setActorCostume(int c) {
void Actor::startWalkActor(int destX, int destY, int dir) {
AdjustBoxResult abr;
- abr.x = destX;
- abr.y = destY;
+ if (_vm->_features & GF_AFTER_V2 || _vm->_features & GF_AFTER_V3) {
+ abr.x = destX;
+ abr.y = destY;
+ } else {
+ abr = adjustXYToBeInBox(destX, destY, walkbox);
+ }
if (!isInCurrentRoom()) {
x = abr.x;