src/road_map.cpp
changeset 7179 3e123c2b7c93
parent 7157 270bc5b64e08
child 7866 e19fda04e8d3
equal deleted inserted replaced
7178:117401da853a 7179:3e123c2b7c93
    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 }