diff options
author | rubidium <rubidium@openttd.org> | 2008-09-26 19:11:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-26 19:11:15 +0000 |
commit | 8fe7d9f217dd3dc4c69ad58c74ff2f2f72699131 (patch) | |
tree | a32faddbb8d7e789b5dfd3bcc007b5e3131bcf49 /src | |
parent | 5fd49a8cd25001c3df27e1fece9f71ec11763e7d (diff) | |
download | openttd-8fe7d9f217dd3dc4c69ad58c74ff2f2f72699131.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.cpp | 2 |
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()) { |