(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch
authorbelugas
Mon, 15 Oct 2007 18:36:20 +0000
changeset 7733 bc007653ce57
parent 7732 a1ab6e2d1cda
child 7734 627817106768
(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch
src/industry_cmd.cpp
--- a/src/industry_cmd.cpp	Mon Oct 15 17:58:42 2007 +0000
+++ b/src/industry_cmd.cpp	Mon Oct 15 18:36:20 2007 +0000
@@ -1185,6 +1185,7 @@
 
 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 @@
 					if (IsClearWaterTile(cur_tile)) return false;
 
 					tileh = GetTileSlope(cur_tile, NULL);
-					if (IsSteepSlope(tileh)) return false;
 
 					refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
 				}