src/road_map.cpp
changeset 6418 e04693bbe82a
parent 6393 e1e4939d19b5
child 6453 226bcddeba32
equal deleted inserted replaced
6417:7594fdb854fd 6418:e04693bbe82a
    45 
    45 
    46 TrackBits GetAnyRoadTrackBits(TileIndex tile)
    46 TrackBits GetAnyRoadTrackBits(TileIndex tile)
    47 {
    47 {
    48 	uint32 r;
    48 	uint32 r;
    49 
    49 
    50 	// Don't allow local authorities to build roads through road depots or road stops.
    50 	/* Don't allow local authorities to build roads through road depots or road stops. */
    51 	if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile))) {
    51 	if ((IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) || (IsTileType(tile, MP_STATION) && !IsDriveThroughStopTile(tile))) {
    52 		return TRACK_BIT_NONE;
    52 		return TRACK_BIT_NONE;
    53 	}
    53 	}
    54 
    54 
    55 	r = GetTileTrackStatus(tile, TRANSPORT_ROAD);
    55 	r = GetTileTrackStatus(tile, TRANSPORT_ROAD);