(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch

pull/155/head
belugas 17 years ago
parent 506107ea9d
commit 1280c7636d

@ -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);
}

Loading…
Cancel
Save