summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-24 21:46:08 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-24 23:03:22 +0100
commit253e2c0af1f88d38dc92d62d82b230711ef2f874 (patch)
treef158cfbe56900bf7ca31bbed51ae07928b854dc0 /src/map.cpp
parent4cb11db37aeb8052e1fef94965bc48bbc949e7f9 (diff)
downloadmana-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.gz
mana-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.bz2
mana-253e2c0af1f88d38dc92d62d82b230711ef2f874.tar.xz
mana-253e2c0af1f88d38dc92d62d82b230711ef2f874.zip
Some code cleanups
Reviewed-by: Jared Adams
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 6d332d48..da3f2185 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -601,7 +601,8 @@ Path Map::findPath(int startX, int startY, int destX, int destY,
std::priority_queue<Location> openList;
// Return when destination not walkable
- if (!getWalk(destX, destY, walkmask)) return path;
+ if (!getWalk(destX, destY, walkmask))
+ return path;
// Reset starting tile's G cost to 0
MetaTile *startTile = getMetaTile(startX, startY);