changeset 4301:2e108e1c1cd2 draft

(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
author truelight <truelight@openttd.org>
date Sat, 19 Aug 2006 11:28:41 +0000
parents e3fd16555bda
children 66accaa31425
files industry_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -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(). */