mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 08:49:50 +00:00
(svn r22810) -Fix: Growth a town on both ends of a tunnel/bridge if the town centre tile is a bridge ramp/tunnel portal.
This commit is contained in:
parent
4c030468e1
commit
9c73f15cde
@ -1110,9 +1110,10 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
|
||||
} else {
|
||||
bool allow_house = true; // Value which decides if we want to construct a house
|
||||
|
||||
/* Reached a tunnel/bridge? Then continue at the other side of it. */
|
||||
/* Reached a tunnel/bridge? Then continue at the other side of it, unless
|
||||
* it is the starting tile. Half the time, we stay on this side then.*/
|
||||
if (IsTileType(tile, MP_TUNNELBRIDGE)) {
|
||||
if (GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD) {
|
||||
if (GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD && (target_dir != DIAGDIR_END || Chance16(1, 2))) {
|
||||
*tile_ptr = GetOtherTunnelBridgeEnd(tile);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user