summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-19 11:28:41 +0000
committertruelight <truelight@openttd.org>2006-08-19 11:28:41 +0000
commitaace8968d65826ba64d92d97e4f8561b49ee5b2c (patch)
tree05a21eec67db43b313213f1eddb7b088a67694cd
parent10b842bddcbe6cdcf7111736bec985cdc13e528f (diff)
downloadopenttd-aace8968d65826ba64d92d97e4f8561b49ee5b2c.tar.xz
(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
-rw-r--r--industry_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index 148a391c8..485747f2d 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1192,7 +1192,7 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
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(). */