summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-08-31 16:12:52 +0000
committertruelight <truelight@openttd.org>2004-08-31 16:12:52 +0000
commit5eba928cb8afb98d25d8145b8f026e0de199d875 (patch)
treeb97b894f85152a05546c2ecb614f2488d094de11 /ai_pathfinder.c
parenta7dd461672f1802054c1e879dc1250bfcaac464f (diff)
downloadopenttd-5eba928cb8afb98d25d8145b8f026e0de199d875.tar.xz
(svn r146) -Fix [AI]: Tunnel/bridge bug
-Fix [AI]: Minor problems -Add [AI]: Profit check (if not making enough money, vehicles are sold)
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r--ai_pathfinder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index 01ce2198e..03439359f 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -187,7 +187,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
// 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 + _tiles_around[i]] & 0x80) == 0) {
- if ((i^2) != (_map5[current->path.node.tile + _tiles_around[i]] & 3)) continue;
+ if (i != (_map5[current->path.node.tile + _tiles_around[i]] & 3)) continue;
}
}
}