(svn r7069) -Fix: AI tried to build road from the back or side of road stop/depot (peter1138)

This commit is contained in:
KUDr
2006-11-05 18:42:25 +00:00
parent a763e7e52e
commit fd361b104d
2 changed files with 3 additions and 2 deletions

View File

@@ -2806,6 +2806,7 @@ static bool AiCheckRoadFinished(Player *p)
are.dest = p->ai.cur_tile_b;
tile = TILE_MASK(p->ai.cur_tile_a + TileOffsByDiagDir(dir));
if (IsRoadStopTile(tile) || IsTileDepotType(tile, TRANSPORT_ROAD)) return false;
bits = GetTileTrackStatus(tile, TRANSPORT_ROAD) & _ai_road_table_and[dir];
if (bits == 0) return false;