mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 13:55:03 +00:00
(svn r21958) -Cleanup: join_stations setting; can done by distant join and could be subverted by distant join
This commit is contained in:
parent
4c5ca17486
commit
4355231f67
@ -1108,7 +1108,6 @@ STR_CONFIG_SETTING_ROAD_VEHICLE_ACCELERATION_MODEL_REALISTIC :Realistic
|
||||
STR_CONFIG_SETTING_TRAIN_SLOPE_STEEPNESS :{LTBLUE}Slope steepness for trains {ORANGE}{STRING1}%
|
||||
STR_CONFIG_SETTING_ROAD_VEHICLE_SLOPE_STEEPNESS :{LTBLUE}Slope steepness for road vehicles {ORANGE}{STRING1}%
|
||||
STR_CONFIG_SETTING_FORBID_90_DEG :{LTBLUE}Forbid trains and ships from making 90° turns: {ORANGE}{STRING1}
|
||||
STR_CONFIG_SETTING_JOINSTATIONS :{LTBLUE}Join train stations built next to each other: {ORANGE}{STRING1}
|
||||
STR_CONFIG_SETTING_DISTANT_JOIN_STATIONS :{LTBLUE}Allow to join stations not directly adjacent: {ORANGE}{STRING1}
|
||||
STR_CONFIG_SETTING_IMPROVEDLOAD :{LTBLUE}Use improved loading algorithm: {ORANGE}{STRING1}
|
||||
STR_CONFIG_SETTING_GRADUAL_LOADING :{LTBLUE}Load vehicles gradually: {ORANGE}{STRING1}
|
||||
|
@ -1353,7 +1353,6 @@ static SettingsPage _settings_stations_cargo_page = {_settings_stations_cargo, l
|
||||
|
||||
static SettingEntry _settings_stations[] = {
|
||||
SettingEntry(&_settings_stations_cargo_page, STR_CONFIG_SETTING_STATIONS_CARGOHANDLING),
|
||||
SettingEntry("station.join_stations"),
|
||||
SettingEntry("station.adjacent_stations"),
|
||||
SettingEntry("station.distant_join_stations"),
|
||||
SettingEntry("station.station_spread"),
|
||||
|
@ -382,7 +382,6 @@ struct EconomySettings {
|
||||
/** Settings related to stations. */
|
||||
struct StationSettings {
|
||||
bool modified_catchment; ///< different-size catchment areas
|
||||
bool join_stations; ///< allow joining of train stations
|
||||
bool adjacent_stations; ///< allow stations to be built directly adjacent to other stations
|
||||
bool distant_join_stations; ///< allow to join non-adjacent stations
|
||||
bool never_expire_airports; ///< never expire airports
|
||||
|
@ -1150,9 +1150,6 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32
|
||||
if (st->owner != _current_company) return_cmd_error(STR_ERROR_TOO_CLOSE_TO_ANOTHER_STATION);
|
||||
|
||||
if (st->train_station.tile != INVALID_TILE) {
|
||||
/* check if we want to expanding an already existing station? */
|
||||
if (!_settings_game.station.join_stations) return_cmd_error(STR_ERROR_TOO_CLOSE_TO_ANOTHER_RAILROAD);
|
||||
|
||||
CommandCost ret = CanExpandRailStation(st, new_location, axis);
|
||||
if (ret.Failed()) return ret;
|
||||
}
|
||||
|
@ -424,7 +424,7 @@ const SettingDesc _settings[] = {
|
||||
SDT_CONDBOOL(GameSettings, vehicle.dynamic_engines, 95, SL_MAX_VERSION, 0,NN, true, STR_CONFIG_SETTING_DYNAMIC_ENGINES, ChangeDynamicEngines),
|
||||
SDT_CONDVAR(GameSettings, vehicle.plane_crashes, SLE_UINT8,138, SL_MAX_VERSION, 0,MS, 2, 0, 2, 1, STR_CONFIG_SETTING_PLANE_CRASHES, NULL),
|
||||
|
||||
SDT_BOOL(GameSettings, station.join_stations, 0, 0, true, STR_CONFIG_SETTING_JOINSTATIONS, NULL),
|
||||
SDT_CONDNULL( 1, 0, 158), // station.join_stations
|
||||
SDTC_CONDBOOL( gui.sg_full_load_any, 22, 92, 0, 0, true, STR_NULL, NULL),
|
||||
SDT_BOOL(GameSettings, order.improved_load, 0,NN, true, STR_CONFIG_SETTING_IMPROVEDLOAD, NULL),
|
||||
SDT_BOOL(GameSettings, order.selectgoods, 0, 0, true, STR_CONFIG_SETTING_SELECTGOODS, NULL),
|
||||
|
Loading…
Reference in New Issue
Block a user