summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 597afa49..1e4cb3ba 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -263,7 +263,7 @@ PATH_NODE *Map::findPath(int startX, int startY, int destX, int destY)
// Calculate G cost for this route, 10 for moving straight and
// 14 for moving diagonal
- int Gcost = curr.tile->Gcost + (dx == 0 || dy == 0) ? 10 : 14;
+ int Gcost = curr.tile->Gcost + ((dx == 0 || dy == 0) ? 10 : 14);
if (newTile->whichList != onOpenList)
{