equal
deleted
inserted
replaced
53 /* Don't allow local authorities to build roads through road depots or road stops. */ |
53 /* Don't allow local authorities to build roads through road depots or road stops. */ |
54 if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile)) || !HASBIT(GetRoadTypes(tile), rt)) { |
54 if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile)) || !HASBIT(GetRoadTypes(tile), rt)) { |
55 return TRACK_BIT_NONE; |
55 return TRACK_BIT_NONE; |
56 } |
56 } |
57 |
57 |
58 r = GetTileTrackStatus(tile, TRANSPORT_ROAD); |
58 r = GetTileTrackStatus(tile, TRANSPORT_ROAD, RoadTypeToRoadTypes(rt)); |
59 |
59 |
60 return (TrackBits)(byte)(r | (r >> 8)); |
60 return (TrackBits)(byte)(r | (r >> 8)); |
61 } |
61 } |