mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 15:11:54 +00:00
(svn r5798) - Fix [r5062]: When expanding a town, the test to check if a tile is a
road depot also excluded all non-road tile types (i.e. bridges/tunnels with road.) Thanks to Graphite for finding this.
This commit is contained in:
parent
5fae4637d8
commit
75d7338c31
12
road_map.c
12
road_map.c
@ -52,9 +52,13 @@ RoadBits GetAnyRoadBits(TileIndex tile)
|
||||
|
||||
TrackBits GetAnyRoadTrackBits(TileIndex tile)
|
||||
{
|
||||
if (IsTileType(tile, MP_STREET) && !IsTileDepotType(tile, TRANSPORT_ROAD)) {
|
||||
uint32 r = GetTileTrackStatus(tile, TRANSPORT_ROAD);
|
||||
return (byte)(r | (r >> 8));
|
||||
uint32 r;
|
||||
|
||||
// Don't allow building through road depot tiles.
|
||||
if (IsTileType(tile, MP_STREET) && IsTileDepotType(tile, TRANSPORT_ROAD)) {
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
|
||||
r = GetTileTrackStatus(tile, TRANSPORT_ROAD);
|
||||
return (byte)(r | (r >> 8));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user