(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.
authorpasky
Mon, 07 Mar 2005 11:36:05 +0000
changeset 1450 6bf299c74d88
parent 1449 df3ccdd9ee66
child 1451 eb24b5a58340
(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.
ai_pathfinder.c
--- a/ai_pathfinder.c	Mon Mar 07 00:39:41 2005 +0000
+++ b/ai_pathfinder.c	Mon Mar 07 11:36:05 2005 +0000
@@ -214,7 +214,7 @@
        				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;
        				}
        			}