mirror of https://github.com/OpenTTD/OpenTTD
Change: Remove disable_unsuitable_building setting
This setting is no longer useful, as you can now always build roads, canals, etc.pull/8473/head
parent
b9f3e45af7
commit
188bf0fbc9
|
@ -1555,7 +1555,6 @@ static SettingsContainer &GetSettingsTree()
|
||||||
construction->Add(new SettingEntry("gui.persistent_buildingtools"));
|
construction->Add(new SettingEntry("gui.persistent_buildingtools"));
|
||||||
construction->Add(new SettingEntry("gui.quick_goto"));
|
construction->Add(new SettingEntry("gui.quick_goto"));
|
||||||
construction->Add(new SettingEntry("gui.default_rail_type"));
|
construction->Add(new SettingEntry("gui.default_rail_type"));
|
||||||
construction->Add(new SettingEntry("gui.disable_unsuitable_building"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface->Add(new SettingEntry("gui.autosave"));
|
interface->Add(new SettingEntry("gui.autosave"));
|
||||||
|
|
|
@ -108,7 +108,6 @@ struct GUISettings {
|
||||||
uint8 window_soft_limit; ///< soft limit of maximum number of non-stickied non-vital windows (0 = no limit)
|
uint8 window_soft_limit; ///< soft limit of maximum number of non-stickied non-vital windows (0 = no limit)
|
||||||
ZoomLevel zoom_min; ///< minimum zoom out level
|
ZoomLevel zoom_min; ///< minimum zoom out level
|
||||||
ZoomLevel zoom_max; ///< maximum zoom out level
|
ZoomLevel zoom_max; ///< maximum zoom out level
|
||||||
bool disable_unsuitable_building; ///< disable infrastructure building when no suitable vehicles are available
|
|
||||||
byte autosave; ///< how often should we do autosaves?
|
byte autosave; ///< how often should we do autosaves?
|
||||||
bool threaded_saves; ///< should we do threaded saves?
|
bool threaded_saves; ///< should we do threaded saves?
|
||||||
bool keep_all_autosave; ///< name the autosave in a different way
|
bool keep_all_autosave; ///< name the autosave in a different way
|
||||||
|
|
|
@ -3048,15 +3048,6 @@ def = true
|
||||||
str = STR_CONFIG_SETTING_WARN_LOST_VEHICLE
|
str = STR_CONFIG_SETTING_WARN_LOST_VEHICLE
|
||||||
strhelp = STR_CONFIG_SETTING_WARN_LOST_VEHICLE_HELPTEXT
|
strhelp = STR_CONFIG_SETTING_WARN_LOST_VEHICLE_HELPTEXT
|
||||||
|
|
||||||
[SDTC_BOOL]
|
|
||||||
var = gui.disable_unsuitable_building
|
|
||||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
|
||||||
def = true
|
|
||||||
str = STR_CONFIG_SETTING_DISABLE_UNSUITABLE_BUILDING
|
|
||||||
strhelp = STR_CONFIG_SETTING_DISABLE_UNSUITABLE_BUILDING_HELPTEXT
|
|
||||||
proc = RedrawScreen
|
|
||||||
cat = SC_EXPERT
|
|
||||||
|
|
||||||
[SDTC_BOOL]
|
[SDTC_BOOL]
|
||||||
var = gui.new_nonstop
|
var = gui.new_nonstop
|
||||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||||
|
|
|
@ -1792,7 +1792,6 @@ bool CanBuildVehicleInfrastructure(VehicleType type, byte subtype)
|
||||||
assert(IsCompanyBuildableVehicleType(type));
|
assert(IsCompanyBuildableVehicleType(type));
|
||||||
|
|
||||||
if (!Company::IsValidID(_local_company)) return false;
|
if (!Company::IsValidID(_local_company)) return false;
|
||||||
if (!_settings_client.gui.disable_unsuitable_building) return true;
|
|
||||||
|
|
||||||
UnitID max;
|
UnitID max;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
Loading…
Reference in New Issue