From 14c4b24405c4522b1092110d7b074d5bbe20994d Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 16 Jul 2014 20:56:39 +0000 Subject: (svn r26692) -Fix [FS#6059]: Ordering a vehicle to a competitor's rail waypoint displayed an error message. Ignore the click as is done for the other order types to competitor's stuff. (Juanjo) --- src/depot_map.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/depot_map.h') diff --git a/src/depot_map.h b/src/depot_map.h index e55994869..c304790f8 100644 --- a/src/depot_map.h +++ b/src/depot_map.h @@ -29,6 +29,9 @@ static inline bool IsDepotTypeTile(TileIndex tile, TransportType type) case TRANSPORT_WATER: return IsShipDepotTile(tile); + + case TRANSPORT_AIR: + return IsHangarTile(tile); } } @@ -58,7 +61,7 @@ static inline DepotID GetDepotIndex(TileIndex t) /** * Get the type of vehicles that can use a depot * @param t The tile - * @pre IsRailDepotTile(t) || IsRoadDepotTile(t) || IsShipDepotTile(t) || IsTileType(t, MP_STATION) + * @pre IsDepotTile(t) * @return the type of vehicles that can use the depot */ static inline VehicleType GetDepotVehicleType(TileIndex t) -- cgit v1.2.3-54-g00ecf