diff options
-rw-r--r-- | engines/parallaction/walk.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/parallaction/walk.cpp b/engines/parallaction/walk.cpp index be69614be4..3084707ba8 100644 --- a/engines/parallaction/walk.cpp +++ b/engines/parallaction/walk.cpp @@ -371,15 +371,13 @@ bool PathWalker_BR::directPathExists(const Common::Point &from, const Common::Po Common::Point p(copy); while (p != to) { - if (p.x < to.x && IS_PATH_CLEAR(p.x + 1, p.y)) p.x++; if (p.x > to.x && IS_PATH_CLEAR(p.x - 1, p.y)) p.x--; if (p.y < to.y && IS_PATH_CLEAR(p.x, p.y + 1)) p.y++; if (p.y > to.y && IS_PATH_CLEAR(p.x, p.y - 1)) p.y--; - if (p == copy && p != to) { + if (p == copy && p != to) return false; - } copy = p; } |