(svn r20048) -Feature: Add a setting to forbid towns building level crossings.

This commit is contained in:
michi_cc
2010-07-02 16:34:07 +00:00
parent ffdbb7ec81
commit a75583bbb6
6 changed files with 6 additions and 1 deletions

View File

@@ -1043,6 +1043,7 @@ static void GrowTownInTile(TileIndex *tile_ptr, RoadBits cur_rb, DiagDirection t
_grow_town_result = GROWTH_SEARCH_STOPPED;
if (!_settings_game.economy.allow_town_roads && !_generating_world) return;
if (!_settings_game.economy.allow_town_level_crossings && IsTileType(tile, MP_RAILWAY)) return;
/* Remove hills etc */
if (!_settings_game.construction.build_on_slopes || Chance16(1, 6)) LevelTownLand(tile);