(svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation..

This commit is contained in:
rubidium
2009-02-11 20:41:17 +00:00
parent 81cf1cac8f
commit e8dbf62761
3 changed files with 5 additions and 4 deletions

View File

@@ -776,7 +776,7 @@ static bool IsRoadAllowedHere(Town *t, TileIndex tile, DiagDirection dir)
return false;
}
cur_slope = GetTileSlope(tile, NULL);
cur_slope = _settings_game.construction.build_on_slopes ? GetFoundationSlope(tile, NULL) : GetTileSlope(tile, NULL);
if (cur_slope == SLOPE_FLAT) {
no_slope:
/* Tile has no slope */