From 05a3a83b6ce2d8d993900b1741ec26c61fa7a5e8 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 10 Jan 2005 22:14:35 +0000 Subject: (svn r1475) Fix some more signed/unsigned comparison warnings --- ai_pathfinder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ai_pathfinder.c') diff --git a/ai_pathfinder.c b/ai_pathfinder.c index 86e391d30..7e9efc4a7 100644 --- a/ai_pathfinder.c +++ b/ai_pathfinder.c @@ -189,11 +189,11 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr if (!PathFinderInfo->rail_or_road && AI_PATHFINDER_IS_ROAD(current->path.node.tile + TileOffsByDir(i))) { if (IS_TILETYPE(current->path.node.tile + TileOffsByDir(i), MP_TUNNELBRIDGE)) { // An existing bridge... let's test the direction ;) - if ((_map5[current->path.node.tile + TileOffsByDir(i)] & 1) != (i & 1)) continue; + if ((_map5[current->path.node.tile + TileOffsByDir(i)] & 1U) != (i & 1)) continue; // This problem only is valid for tunnels: // When the last tile was not yet a tunnel, check if we enter from the right side.. if (!IS_TILETYPE(current->path.node.tile, MP_TUNNELBRIDGE) && (_map5[current->path.node.tile + TileOffsByDir(i)] & 0x80) == 0) { - if (i != (_map5[current->path.node.tile + TileOffsByDir(i)] & 3)) continue; + if (i != (_map5[current->path.node.tile + TileOffsByDir(i)] & 3U)) continue; } } } @@ -201,7 +201,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr if (!PathFinderInfo->rail_or_road && AI_PATHFINDER_IS_ROAD(current->path.node.tile)) { if (IS_TILETYPE(current->path.node.tile, MP_TUNNELBRIDGE)) { // An existing bridge/tunnel... let's test the direction ;) - if ((_map5[current->path.node.tile] & 1) != (i & 1)) continue; + if ((_map5[current->path.node.tile] & 1U) != (i & 1)) continue; } } -- cgit v1.2.3-54-g00ecf