diff options
Diffstat (limited to 'src/road_map.cpp')
-rw-r--r-- | src/road_map.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/road_map.cpp b/src/road_map.cpp index c86c3d1b3..2d236b504 100644 --- a/src/road_map.cpp +++ b/src/road_map.cpp @@ -43,14 +43,10 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt) TrackBits GetAnyRoadTrackBits(TileIndex tile, RoadType rt) { - uint32 r; - /* Don't allow local authorities to build roads through road depots or road stops. */ if (IsRoadDepotTile(tile) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile)) || !HasTileRoadType(tile, rt)) { return TRACK_BIT_NONE; } - r = GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(rt)); - - return (TrackBits)(byte)(r | (r >> 8)); + return TrackStatusToTrackBits(GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(rt))); } |