summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-07 11:36:05 +0000
committerpasky <pasky@openttd.org>2005-03-07 11:36:05 +0000
commit380d601ca0aa4aca99736d8c50f11ea1fde7f801 (patch)
tree5e0323af61a94674a80cb406a08a0160e38aa848 /ai_pathfinder.c
parent1c41c613054abe1eed96283fe29aa5ab82ef70f7 (diff)
downloadopenttd-380d601ca0aa4aca99736d8c50f11ea1fde7f801.tar.xz
(svn r1954) Fix: The new AI now does not think it can connect to the road by building its piece of road above the end of a tunnel anymore.
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 14d648786..76471a123 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -214,7 +214,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
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 (!IsTileType(current->path.node.tile, MP_TUNNELBRIDGE) && (_map5[current->path.node.tile + TileOffsByDir(i)] & 0x80) == 0) {
+ if ((_map5[current->path.node.tile + TileOffsByDir(i)] & 0x80) == 0) {
if (i != (_map5[current->path.node.tile + TileOffsByDir(i)] & 3U)) continue;
}
}