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 /road_map.h | |
parent | 475f2767691da03e22cdcd6eb7bfd305c093166c (diff) | |
download | openttd-7ec704564a35940442d5ad52b39c850465685f31.tar.xz |
(svn r5582) Add and use AxisToTrack{Bits,}()
Diffstat (limited to 'road_map.h')
-rw-r--r-- | road_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/road_map.h b/road_map.h index 754c6d026..9ec26da61 100644 --- a/road_map.h +++ b/road_map.h @@ -57,7 +57,7 @@ static inline RoadBits GetCrossingRoadBits(TileIndex tile) static inline TrackBits GetCrossingRailBits(TileIndex tile) { - return GetCrossingRoadAxis(tile) == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X; + return AxisToTrackBits(OtherAxis(GetCrossingRoadAxis(tile))); } |