Mercurial > hg > openttd
changeset 17219:27491beaffa6 draft
(svn r21958) -Cleanup: join_stations setting; can done by distant join and could be subverted by distant join
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 04 Feb 2011 15:29:50 +0000 |
parents | 46deeeb7a878 |
children | 026d5463e627 |
files | src/lang/english.txt src/settings_gui.cpp src/settings_type.h src/station_cmd.cpp src/table/settings.h |
diffstat | 5 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1108,7 +1108,6 @@ 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}
--- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1353,7 +1353,6 @@ 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"),
--- a/src/settings_type.h +++ b/src/settings_type.h @@ -382,7 +382,6 @@ /** 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
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1150,9 +1150,6 @@ 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; }
--- a/src/table/settings.h +++ b/src/table/settings.h @@ -424,7 +424,7 @@ 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),