diff options
author | tron <tron@openttd.org> | 2006-07-22 08:59:52 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-07-22 08:59:52 +0000 |
commit | 7ec704564a35940442d5ad52b39c850465685f31 (patch) | |
tree | 3cd7af50d593f93b4699b58b3293d63c0a9c7eef /station_map.h | |
parent | 475f2767691da03e22cdcd6eb7bfd305c093166c (diff) | |
download | openttd-7ec704564a35940442d5ad52b39c850465685f31.tar.xz |
(svn r5582) Add and use AxisToTrack{Bits,}()
Diffstat (limited to 'station_map.h')
-rw-r--r-- | station_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/station_map.h b/station_map.h index 9fecd7a0f..ad33a5efb 100644 --- a/station_map.h +++ b/station_map.h @@ -188,7 +188,7 @@ static inline Axis GetRailStationAxis(TileIndex t) static inline Track GetRailStationTrack(TileIndex t) { - return GetRailStationAxis(t) == AXIS_X ? TRACK_X : TRACK_Y; + return AxisToTrack(GetRailStationAxis(t)); } static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2) |