summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-13 11:07:04 +0000
committersmatz <smatz@openttd.org>2010-05-13 11:07:04 +0000
commit28d25cadfc87398c3b352a07de377b836e4aa0d1 (patch)
tree8770d1a716cbbd56b5c32c62e90b2411d85c6747 /src/pathfinder
parent062dd0e24c283f210216ede06bbde0ed72c7ed25 (diff)
downloadopenttd-28d25cadfc87398c3b352a07de377b836e4aa0d1.tar.xz
(svn r19815) -Cleanup: remove two unused variables
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/npf/aystar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp
index ffe62f7fa..a4ea8f70c 100644
--- a/src/pathfinder/npf/aystar.cpp
+++ b/src/pathfinder/npf/aystar.cpp
@@ -158,7 +158,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod
*/
static int AyStarMain_Loop(AyStar *aystar)
{
- int i, r;
+ int i;
/* Get the best node from OpenList */
OpenListNode *current = AyStarMain_OpenList_Pop(aystar);
@@ -182,7 +182,7 @@ static int AyStarMain_Loop(AyStar *aystar)
/* Go through all neighbours */
for (i = 0; i < aystar->num_neighbours; i++) {
/* Check and add them to the OpenList if needed */
- r = aystar->checktile(aystar, &aystar->neighbours[i], current);
+ aystar->checktile(aystar, &aystar->neighbours[i], current);
}
/* Free the node */