summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-09 12:14:23 +0100
committerGitHub <noreply@github.com>2021-01-09 12:14:23 +0100
commit8e6574dcdb6362edd0124d400d9c4a00071b22a1 (patch)
tree6f7eb248130b6191c2e976dba3387e3bf8ac674c
parentb0456669c9391423dafca39230e990ed59e112d1 (diff)
downloadopenttd-8e6574dcdb6362edd0124d400d9c4a00071b22a1.tar.xz
Revert 78f92130: "Fix #8506: Towns shouldn't add junctions to NewGRF roads they cannot build (#8535)" (#8541)
As per https://github.com/OpenTTD/OpenTTD/pull/8535#issuecomment-757122918, jumped the gun here.
-rw-r--r--src/town_cmd.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index d92a076b2..3a2cd7087 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1349,9 +1349,6 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
assert(tile < MapSize());
- /* Don't allow junctions on roadtypes which can't be built by towns. */
- if (IsTileType(tile, MP_ROAD) && !HasBit(GetRoadTypeInfo(GetRoadTypeRoad(tile))->flags, ROTF_TOWN_BUILD)) return;
-
if (cur_rb == ROAD_NONE) {
/* Tile has no road. First reset the status counter
* to say that this is the last iteration. */