(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it

This commit is contained in:
rubidium
2011-11-04 10:23:48 +00:00
parent 2ed0f93bfb
commit ecbc56a677
5 changed files with 7 additions and 6 deletions

View File

@@ -787,7 +787,7 @@ static bool IsRoadAllowedHere(Town *t, TileIndex tile, DiagDirection dir)
}
}
Slope cur_slope = _settings_game.construction.build_on_slopes ? GetFoundationPixelSlope(tile, NULL) : GetTileSlope(tile);
Slope cur_slope = _settings_game.construction.build_on_slopes ? GetFoundationSlope(tile) : GetTileSlope(tile);
bool ret = !IsNeighborRoadTile(tile, dir, t->layout == TL_ORIGINAL ? 1 : 2);
if (cur_slope == SLOPE_FLAT) return ret;