Add setting to allow placing stations under bridges

This commit is contained in:
Jonathan G Rennison
2018-07-24 03:07:24 +01:00
parent 56bde8ce18
commit 4bdbf3863d
7 changed files with 26 additions and 5 deletions

View File

@@ -46,6 +46,7 @@
#include "viewport_func.h"
#include "station_map.h"
#include "industry_map.h"
#include "object_map.h"
#include "table/strings.h"
#include "table/bridge_land.h"
@@ -500,6 +501,11 @@ CommandCost CmdBuildBridge(TileIndex end_tile, DoCommandFlag flags, uint32 p1, u
break;
}
case MP_STATION: {
if (!_settings_game.construction.allow_stations_under_bridges) goto not_valid_below;
break;
}
case MP_CLEAR:
break;