summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-10-15 18:36:20 +0000
committerbelugas <belugas@openttd.org>2007-10-15 18:36:20 +0000
commita1e1d8536193d1d3eba46077b55b119eda3d8823 (patch)
tree2871bf849fcb7a8c10da8e76e74fff16e8041297 /src/industry_cmd.cpp
parent4a7e446d35f8d760a8c5835cfac9fc9453bb2e2d (diff)
downloadopenttd-a1e1d8536193d1d3eba46077b55b119eda3d8823.tar.xz
(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 8e17ef800..788396d4b 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1185,6 +1185,7 @@ static const Town *CheckMultipleIndustryInTown(TileIndex tile, int type)
bool IsSlopeRefused(Slope current, Slope refused)
{
+ if (IsSteepSlope(current)) return true;
if (current != SLOPE_FLAT) {
if (refused & SLOPE_STEEP) return true;
@@ -1242,7 +1243,6 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
if (IsClearWaterTile(cur_tile)) return false;
tileh = GetTileSlope(cur_tile, NULL);
- if (IsSteepSlope(tileh)) return false;
refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
}