aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/actor.cpp b/actor.cpp
index e03af6b6d1..c8e9781411 100644
--- a/actor.cpp
+++ b/actor.cpp
@@ -590,6 +590,7 @@ AdjustBoxResult Actor::adjustXYToBeInBox(int dstX, int dstY, int pathfrom)
best = (uint) 0xFFFF;
b = 0;
+ if (!(_vm->_features & GF_OLD256) || box)
for (j = box; j >= firstValidBox; j--) {
flags = _vm->getBoxFlags(j);
if (flags & 0x80 && (!(flags & 0x20) || isInClass(31)))