(svn r13604) [NoAI] -Fix: rail/road crossings are not buildable either (and worse: caused asserts)
--- a/src/ai/api/ai_tile.cpp Sat Jun 21 13:40:17 2008 +0000
+++ b/src/ai/api/ai_tile.cpp Sun Jun 22 12:12:04 2008 +0000
@@ -29,8 +29,8 @@
case MP_ROAD:
/* Tram bits aren't considered buildable */
if (::GetRoadTypes(tile) != ROADTYPES_ROAD) return false;
- /* Depots aren't considered buildable */
- if (::GetRoadTileType(tile) == ROAD_TILE_DEPOT) return false;
+ /* Depots and crossings aren't considered buildable */
+ if (::GetRoadTileType(tile) != ROAD_TILE_NORMAL) return false;
if (CountBits(::GetRoadBits(tile, ROADTYPE_ROAD)) != 1) return false;
if (::IsRoadOwner(tile, ROADTYPE_ROAD, OWNER_TOWN)) return true;
if (::IsRoadOwner(tile, ROADTYPE_ROAD, _current_player)) return true;