(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.
authorrubidium
Fri, 26 Sep 2008 19:11:15 +0000
changeset 10191 a7c7d7608f10
parent 10190 9915a44e1459
child 10192 6ef54dd65a97
(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.
src/town_cmd.cpp
--- a/src/town_cmd.cpp	Fri Sep 26 19:01:57 2008 +0000
+++ b/src/town_cmd.cpp	Fri Sep 26 19:11:15 2008 +0000
@@ -1022,7 +1022,7 @@
 		_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()) {