summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-04-28 17:25:21 +0000
committerfrosch <frosch@openttd.org>2015-04-28 17:25:21 +0000
commit813e85f301d7dcc1014185832788b37995df529a (patch)
tree0f4a81844f1c77d2835e4bf49959abe4b8895b8c
parent5992f4fa1b4ae47cd0245ea74e0e06c3c4dceece (diff)
downloadopenttd-813e85f301d7dcc1014185832788b37995df529a.tar.xz
(svn r27260) -Fix (r27244): economy.allow_town_roads should not affect town placement during world generation.
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 642d95919..4ac63d5de 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1311,7 +1311,7 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir)
if (HasTileWaterGround(target_tile)) return false;
RoadBits target_rb = GetTownRoadBits(target_tile);
- if (_settings_game.economy.allow_town_roads) {
+ if (_settings_game.economy.allow_town_roads || _generating_world) {
/* Check whether a road connection exists or can be build. */
switch (GetTileType(target_tile)) {
case MP_ROAD: