(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack

This commit is contained in:
smatz
2009-01-12 19:49:23 +00:00
parent 4c1e61997a
commit d286e1df4b
5 changed files with 8 additions and 19 deletions

View File

@@ -739,11 +739,7 @@ CommandCost CheckFlatLandBelow(TileIndex tile, uint w, uint h, uint flags, uint
/* Prohibit building if
* 1) The tile is "steep" (i.e. stretches two height levels)
* -OR-
* 2) The tile is non-flat if
* a) the company building is an "old-school" AI
* -OR-
* b) the build_on_slopes switch is disabled
* 2) The tile is non-flat and the build_on_slopes switch is disabled
*/
if (IsSteepSlope(tileh) ||
((!_settings_game.construction.build_on_slopes) && tileh != SLOPE_FLAT)) {