diff options
author | belugas <belugas@openttd.org> | 2007-10-15 18:36:20 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-10-15 18:36:20 +0000 |
commit | 1280c7636db841d2a7e79f819aedfbfd83f87e6f (patch) | |
tree | 2871bf849fcb7a8c10da8e76e74fff16e8041297 | |
parent | 506107ea9d433d738beadb307e8e4174946003c2 (diff) | |
download | openttd-1280c7636db841d2a7e79f819aedfbfd83f87e6f.tar.xz |
(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch
-rw-r--r-- | src/industry_cmd.cpp | 2 |
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); } |