branch | noai |
changeset 10645 | 8cbdb511a674 |
parent 10249 | 58810805030e |
--- a/src/rail_map.h Mon May 19 14:14:33 2008 +0000 +++ b/src/rail_map.h Mon May 19 15:13:58 2008 +0000 @@ -168,6 +168,17 @@ return (DiagDirection)GB(_m[t].m5, 0, 2); } +/** + * Returns the track of a depot, ignoring direction + * @pre IsRailDepotTile(t) + * @param t the tile to get the depot track from + * @return the track of the depot + */ +static inline Track GetRailDepotTrack(TileIndex t) +{ + return DiagDirToDiagTrack(GetRailDepotDirection(t)); +} + /** * Returns the axis of the waypoint