aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner2011-01-21 20:08:11 +0000
committerDavid Turner2011-01-21 20:08:11 +0000
commitbbb1379def2f26663aa2006152e25f63df49328f (patch)
treee3663fdb35b5cb27b1cb19449ab568e41994da46
parent4818b2ae080b29fbf896a03d555867ba1311e5e8 (diff)
downloadscummvm-rg350-bbb1379def2f26663aa2006152e25f63df49328f.tar.gz
scummvm-rg350-bbb1379def2f26663aa2006152e25f63df49328f.tar.bz2
scummvm-rg350-bbb1379def2f26663aa2006152e25f63df49328f.zip
PARALLACTION: Minor Whitespace fixup in walk.cpp
svn-id: r55392
-rw-r--r--engines/parallaction/walk.cpp4
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;
}