From bbb1379def2f26663aa2006152e25f63df49328f Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 21 Jan 2011 20:08:11 +0000 Subject: PARALLACTION: Minor Whitespace fixup in walk.cpp svn-id: r55392 --- engines/parallaction/walk.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines') 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; } -- cgit v1.2.3