(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
authortruelight
Sat, 19 Aug 2006 11:28:41 +0000
changeset 4301 848438a6cb16
parent 4300 c7e43c47a2b9
child 4302 f359a03a5cde
(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
industry_cmd.c
--- a/industry_cmd.c	Sat Aug 19 10:00:30 2006 +0000
+++ b/industry_cmd.c	Sat Aug 19 11:28:41 2006 +0000
@@ -1192,7 +1192,7 @@
 				tileh = GetTileSlope(cur_tile, NULL);
 				if (IsSteepSlope(tileh)) return false;
 
-				if (_patches.land_generator == LG_TERRAGENESIS || !_generating_world) {
+				if (_patches.land_generator != LG_TERRAGENESIS || !_generating_world) {
 					/* It is almost impossible to have a fully flat land in TG, so what we
 					 *  do is that we check if we can make the land flat later on. See
 					 *  CheckIfCanLevelIndustryPlatform(). */