src/industry_cmd.cpp
changeset 7733 bc007653ce57
parent 7676 926233c6e06a
child 7739 0b6f3da5c083
equal deleted inserted replaced
7732:a1ab6e2d1cda 7733:bc007653ce57
  1183 	return t;
  1183 	return t;
  1184 }
  1184 }
  1185 
  1185 
  1186 bool IsSlopeRefused(Slope current, Slope refused)
  1186 bool IsSlopeRefused(Slope current, Slope refused)
  1187 {
  1187 {
       
  1188 	if (IsSteepSlope(current)) return true;
  1188 	if (current != SLOPE_FLAT) {
  1189 	if (current != SLOPE_FLAT) {
  1189 		if (refused & SLOPE_STEEP) return true;
  1190 		if (refused & SLOPE_STEEP) return true;
  1190 
  1191 
  1191 		Slope t = ComplementSlope(current);
  1192 		Slope t = ComplementSlope(current);
  1192 
  1193 
  1240 					Slope tileh;
  1241 					Slope tileh;
  1241 
  1242 
  1242 					if (IsClearWaterTile(cur_tile)) return false;
  1243 					if (IsClearWaterTile(cur_tile)) return false;
  1243 
  1244 
  1244 					tileh = GetTileSlope(cur_tile, NULL);
  1245 					tileh = GetTileSlope(cur_tile, NULL);
  1245 					if (IsSteepSlope(tileh)) return false;
       
  1246 
  1246 
  1247 					refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
  1247 					refused_slope |= IsSlopeRefused(tileh, its->slopes_refused);
  1248 				}
  1248 				}
  1249 			}
  1249 			}
  1250 
  1250