From 9c73f15cdeb044ae83a116d14ece3188d4868a3c Mon Sep 17 00:00:00 2001 From: michi_cc Date: Mon, 22 Aug 2011 12:41:24 +0000 Subject: (svn r22810) -Fix: Growth a town on both ends of a tunnel/bridge if the town centre tile is a bridge ramp/tunnel portal. --- src/town_cmd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index e98079db5..ddbe9127e 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -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; -- cgit v1.2.3-54-g00ecf