OpenTTD Source 20250312-master-gcdcc6b491d
CompanySettings Struct Reference

Settings that can be set per company. More...

#include <settings_type.h>

Data Fields

bool engine_renew = false
 is autorenew enabled
 
int16_t engine_renew_months = 0
 months before/after the maximum vehicle age a vehicle should be renewed
 
uint32_t engine_renew_money = 0
 minimum amount of money before autorenew is used
 
bool renew_keep_length = false
 sell some wagons if after autoreplace the train is longer than before
 
VehicleDefaultSettings vehicle {}
 default settings for vehicles
 

Detailed Description

Settings that can be set per company.

Definition at line 590 of file settings_type.h.

Field Documentation

◆ engine_renew

bool CompanySettings::engine_renew = false

is autorenew enabled

Definition at line 591 of file settings_type.h.

Referenced by AgeVehicle(), and Vehicle::NeedsAutorenewing().

◆ engine_renew_money

uint32_t CompanySettings::engine_renew_money = 0

minimum amount of money before autorenew is used

Definition at line 593 of file settings_type.h.

Referenced by Vehicle::NeedsServicing().

◆ engine_renew_months

int16_t CompanySettings::engine_renew_months = 0

months before/after the maximum vehicle age a vehicle should be renewed

Definition at line 592 of file settings_type.h.

Referenced by Vehicle::NeedsAutorenewing().

◆ renew_keep_length

bool CompanySettings::renew_keep_length = false

sell some wagons if after autoreplace the train is longer than before

Definition at line 594 of file settings_type.h.

Referenced by CmdAutoreplaceVehicle(), CmdCreateGroup(), and ReplaceVehicleWindow::GetWidgetString().

◆ vehicle


The documentation for this struct was generated from the following file: