equal
deleted
inserted
replaced
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 |