summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-22 18:42:21 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-22 18:42:21 +0000
commit8c0964dbb59a10c47d2040686b03201ab5688092 (patch)
tree2d3028f7f82f5a331407357be2dcaff70e62d735 /src/map.cpp
parent72675288113644c0d12fccb85d9aa2f4c0b59965 (diff)
downloadmana-8c0964dbb59a10c47d2040686b03201ab5688092.tar.gz
mana-8c0964dbb59a10c47d2040686b03201ab5688092.tar.bz2
mana-8c0964dbb59a10c47d2040686b03201ab5688092.tar.xz
mana-8c0964dbb59a10c47d2040686b03201ab5688092.zip
Fixed a bug, thanks GCC 4.3!
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;
}