diff options
-rw-r--r-- | saga/actor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index cfcbab58c2..7b62c36bc2 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -1806,12 +1806,14 @@ void Actor::findActorPath(ActorData *actor, const Point &fromPoint, const Point for (iteratorPoint.y = 0; iteratorPoint.y < _yCellCount; iteratorPoint.y++) { for (iteratorPoint.x = 0; iteratorPoint.x < _xCellCount; iteratorPoint.x++) { + // This is almost, but not quite, the same thing as canWalk(). + // Is that difference significant or not? if (_vm->_scene->validBGMaskPoint(iteratorPoint)) { maskType = _vm->_scene->getBGMaskType(iteratorPoint); + setPathCell(iteratorPoint, _vm->_scene->getDoorState(maskType) ? kPathCellBarrier : kPathCellEmpty); } else { - maskType = 1; + setPathCell(iteratorPoint, kPathCellBarrier); } - setPathCell(iteratorPoint, maskType ? kPathCellBarrier : kPathCellEmpty); } } |