diff options
author | tron <tron@openttd.org> | 2005-01-09 21:25:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-09 21:25:44 +0000 |
commit | 4450ff105c6ddb9ab855b9cf8b4dcbea315b11e0 (patch) | |
tree | 3a16c9375ca0fbd2f06a419b1b0876bf48c7a3e0 /ai_pathfinder.c | |
parent | d2e02df8814edab9e04437d8208d2e7786dfd999 (diff) | |
download | openttd-4450ff105c6ddb9ab855b9cf8b4dcbea315b11e0.tar.xz |
(svn r1451) Fix some of the signed/unsigned comparison warnings
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r-- | ai_pathfinder.c | 7 |
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 = ¤t->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; |