summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-09 21:25:44 +0000
committertron <tron@openttd.org>2005-01-09 21:25:44 +0000
commit49584082a08db84344a54ae7e0a7927915261edf (patch)
tree3a16c9375ca0fbd2f06a419b1b0876bf48c7a3e0 /ai_pathfinder.c
parentc6c86abeeec71db7ae8ef484af6f6e2373528a71 (diff)
downloadopenttd-49584082a08db84344a54ae7e0a7927915261edf.tar.xz
(svn r1451) Fix some of the signed/unsigned comparison warnings
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r--ai_pathfinder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index d1bccb17d..86e391d30 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -148,7 +148,7 @@ static int32 AyStar_AiPathFinder_CalculateH(AyStar *aystar, AyStarNode *current,
// We found the end.. let's get the route back and put it in an array
static void AyStar_AiPathFinder_FoundEndNode(AyStar *aystar, OpenListNode *current) {
Ai_PathFinderInfo *PathFinderInfo = (Ai_PathFinderInfo*)aystar->user_target;
- int i = 0;
+ uint i = 0;
PathNode *parent = &current->path;
do {
@@ -168,7 +168,10 @@ static void AyStar_AiPathFinder_FoundEndNode(AyStar *aystar, OpenListNode *curre
// What tiles are around us.
static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *current) {
- int i, r, dir;
+ uint i;
+ int r;
+ int dir;
+
Ai_PathFinderInfo *PathFinderInfo = (Ai_PathFinderInfo*)aystar->user_target;
aystar->num_neighbours = 0;