diff options
author | yexo <yexo@openttd.org> | 2010-09-13 13:36:36 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-13 13:36:36 +0000 |
commit | 4d1f24330fdbbaa4113d987d53f5a1bfe9accd83 (patch) | |
tree | 8f80b3d4a4d2cf1749e805efc3c4dee978b77d5b /src | |
parent | 2d4c5ea66864e4b53d75decaa14ffafe643aa8ed (diff) | |
download | openttd-4d1f24330fdbbaa4113d987d53f5a1bfe9accd83.tar.xz |
(svn r20798) -Doc [FS#4117]: [NoAI] AITile::HasTransportType doesn't work for TRANSPORT_AIR
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/api/ai_tile.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ai/api/ai_tile.hpp b/src/ai/api/ai_tile.hpp index da3ad8cfa..e21f15bb7 100644 --- a/src/ai/api/ai_tile.hpp +++ b/src/ai/api/ai_tile.hpp @@ -298,10 +298,14 @@ public: * @param tile The tile to check. * @param transport_type The TransportType to check against. * @pre AIMap::IsValidTile(tile). + * @pre transport_type != TRANSPORT_AIR. * @note Returns false on tiles with roadworks and on road tiles with only * a single piece of road as these tiles cannot be used to transport * anything on. It furthermore returns true on some coast tile for * TRANSPORT_WATER because ships can navigate over them. + * @note Use AIAirport.IsAirportTile to check for airport tiles. Aircraft + * can fly over every tile on the map so using HasTransportType + * doesn't make sense for TRANSPORT_AIR. * @return True if and only if the tile has the given TransportType. */ static bool HasTransportType(TileIndex tile, TransportType transport_type); |