diff options
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index df897c91d..cf099b53b 100644 --- a/rail_map.h +++ b/rail_map.h @@ -60,6 +60,14 @@ static inline RailTileSubtype GetRailTileSubtype(TileIndex tile) } +static inline bool IsRailDepot(TileIndex t) +{ + return + GetRailTileType(t) == RAIL_TILE_DEPOT_WAYPOINT && + GetRailTileSubtype(t) == RAIL_SUBTYPE_DEPOT; +} + + static inline bool IsRailWaypoint(TileIndex t) { return |