summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-26 19:11:15 +0000
committerrubidium <rubidium@openttd.org>2008-09-26 19:11:15 +0000
commit257f7a229bc96b491ae283b9ef7cee802bff04d2 (patch)
treea32faddbb8d7e789b5dfd3bcc007b5e3131bcf49 /src
parent436011dda3717f990f84cc4dd18790efd7dae367 (diff)
downloadopenttd-257f7a229bc96b491ae283b9ef7cee802bff04d2.tar.xz
(svn r14404) -Change [FS#2176]: don't make the town flatten land unconditionally when build on slopes is turned on. Based on a patch by Eddi.
Diffstat (limited to 'src')
-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 8b03aa9f4..b68f9cf70 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1022,7 +1022,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
_grow_town_result = GROWTH_SEARCH_STOPPED;
/* Remove hills etc */
- LevelTownLand(tile);
+ if (!_settings_game.construction.build_on_slopes || Chance16(1, 6)) LevelTownLand(tile);
/* Is a road allowed here? */
switch (t1->GetActiveLayout()) {