diff options
author | KUDr <kudr@openttd.org> | 2006-11-05 18:42:25 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-11-05 18:42:25 +0000 |
commit | fd361b104de0aca6ce3f5f41856502f306f28b14 (patch) | |
tree | 25b31ec9a0c72f4795c36973f401434d8b4fc44b /ai | |
parent | a763e7e52ede53d617dac0a84421629d96eec0e5 (diff) | |
download | openttd-fd361b104de0aca6ce3f5f41856502f306f28b14.tar.xz |
(svn r7069) -Fix: AI tried to build road from the back or side of road stop/depot (peter1138)
Diffstat (limited to 'ai')
-rw-r--r-- | ai/default/default.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 6794d9f26..379f4516e 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -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; |