Changeset - r7733:285865abadc4
[Not reviewed]
master
0 1 0
belugas - 17 years ago 2007-10-15 18:36:20
belugas@openttd.org
(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1185,6 +1185,7 @@ static const Town *CheckMultipleIndustry
 

	
 
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(
 
					if (IsClearWaterTile(cur_tile)) return false;
 

	
 
					tileh = GetTileSlope(cur_tile, NULL);
 
					if (IsSteepSlope(tileh)) return false;
 

	
 
					refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
 
				}
0 comments (0 inline, 0 general)