diff options
author | tron <tron@openttd.org> | 2005-01-10 22:14:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-10 22:14:35 +0000 |
commit | 05a3a83b6ce2d8d993900b1741ec26c61fa7a5e8 (patch) | |
tree | 6883287048b8258867d42f07df628238162411dc /ai_pathfinder.c | |
parent | 46d0e2f892bdb7a17deb7b5e2847db458967bf14 (diff) | |
download | openttd-05a3a83b6ce2d8d993900b1741ec26c61fa7a5e8.tar.xz |
(svn r1475) Fix some more signed/unsigned comparison warnings
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r-- | ai_pathfinder.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |