diff options
author | tron <tron@openttd.org> | 2006-03-19 12:06:12 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-19 12:06:12 +0000 |
commit | 77e5cf4bc1137805a8e69e6a8ce1370af09dd8d8 (patch) | |
tree | b86bb7662c2be1ce87ebc168346f1677af2a26e4 /road_cmd.c | |
parent | ba53ec750a05c8e0e316c8f5838cfad7f9fd13de (diff) | |
download | openttd-77e5cf4bc1137805a8e69e6a8ce1370af09dd8d8.tar.xz |
(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c index 58e35721a..a0c7066e3 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -1034,7 +1034,7 @@ static uint32 GetTileTrackStatus_Road(TileIndex tile, TransportType mode) switch (mode) { case TRANSPORT_RAIL: if (!IsLevelCrossing(tile)) return 0; - return _m[tile].m5 & 8 ? 0x101 : 0x202; + return GetCrossingRailBits(tile) * 0x101; case TRANSPORT_ROAD: switch (GetRoadType(tile)) { |