OpenTTD Source 20241224-master-gf74b0cf984
|
Settings that can be set per company. More...
#include <settings_type.h>
Data Fields | |
bool | engine_renew |
is autorenew enabled | |
int16_t | engine_renew_months |
months before/after the maximum vehicle age a vehicle should be renewed | |
uint32_t | engine_renew_money |
minimum amount of money before autorenew is used | |
bool | renew_keep_length |
sell some wagons if after autoreplace the train is longer than before | |
VehicleDefaultSettings | vehicle |
default settings for vehicles | |
Settings that can be set per company.
Definition at line 582 of file settings_type.h.
bool CompanySettings::engine_renew |
is autorenew enabled
Definition at line 583 of file settings_type.h.
Referenced by AgeVehicle(), and Vehicle::NeedsAutorenewing().
uint32_t CompanySettings::engine_renew_money |
minimum amount of money before autorenew is used
Definition at line 585 of file settings_type.h.
Referenced by Vehicle::NeedsServicing().
int16_t CompanySettings::engine_renew_months |
months before/after the maximum vehicle age a vehicle should be renewed
Definition at line 584 of file settings_type.h.
Referenced by Vehicle::NeedsAutorenewing().
bool CompanySettings::renew_keep_length |
sell some wagons if after autoreplace the train is longer than before
Definition at line 586 of file settings_type.h.
Referenced by CmdAutoreplaceVehicle(), CmdCreateGroup(), and ReplaceVehicleWindow::SetStringParameters().
VehicleDefaultSettings CompanySettings::vehicle |
default settings for vehicles
Definition at line 587 of file settings_type.h.
Referenced by ChangeOwnershipOfCompanyItems(), ChangeTimekeepingUnits(), CmdChangeServiceInt(), CompanyServiceInterval(), GetDefaultServiceInterval(), ServiceIntervalSettingsValueText(), and UpdateAllServiceInterval().