(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 1352486059b3
parent 4300 687a17c9c557
child 4302 3b0d125d5cd7
(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(). */