# HG changeset patch # User rubidium # Date 1167571484 0 # Node ID 4d40b22a9a963026ac5e7268153e8b21e3d586ed # Parent 78c0d75bbb44fb66e8b0dee5b4194c01297ed85e (svn r7698) -Fix (r7573): towns did not grow beyond bridges. diff -r 78c0d75bbb44 -r 4d40b22a9a96 town_cmd.c --- a/town_cmd.c Sun Dec 31 11:42:56 2006 +0000 +++ b/town_cmd.c Sun Dec 31 13:24:44 2006 +0000 @@ -612,15 +612,16 @@ } else { int i; - // Reached a tunnel? Then continue at the other side of it. - if (IsTunnelTile(tile) && GetTunnelTransportType(tile) == TRANSPORT_ROAD) { - *tile_ptr = GetOtherTunnelEnd(tile); + // Reached a tunnel/bridge? Then continue at the other side of it. + if (IsTileType(tile, MP_TUNNELBRIDGE)) { + if (IsTunnel(tile) && GetTunnelTransportType(tile) == TRANSPORT_ROAD) { + *tile_ptr = GetOtherTunnelEnd(tile); + } else if (IsBridge(tile) && GetBridgeTransportType(tile) == TRANSPORT_ROAD) { + *tile_ptr = GetOtherBridgeEnd(tile); + } return; } - // For any other kind of tunnel/bridge, bail out. - if (IsTileType(tile, MP_TUNNELBRIDGE)) return; - // Possibly extend the road in a direction. // Randomize a direction and if it has a road, bail out. i = GB(Random(), 0, 2);