summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index c8bdc574..c65b0cd6 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -380,7 +380,8 @@ Path Map::findPath(int startX, int startY, int destX, int destY)
MetaTile *newTile = getMetaTile(x, y);
// Skip if the tile is on the closed list or collides unless its the destination tile
- if (newTile->whichList == mOnClosedList || tileCollides(x, y) && !(x == destX && y == destY))
+ if (newTile->whichList == mOnClosedList ||
+ (tileCollides(x, y) && !(x == destX && y == destY)))
{
continue;
}