Add setting for whether to show vehicle running costs per calendar year
See #660
This commit is contained in:
@@ -319,7 +319,9 @@ uint Engine::DetermineCapacity(const Vehicle *v, uint16_t *mail_capacity) const
|
||||
*/
|
||||
Money Engine::GetDisplayRunningCost() const
|
||||
{
|
||||
return this->GetRunningCost() * DayLengthFactor();
|
||||
Money cost = this->GetRunningCost();
|
||||
if (_settings_client.gui.show_running_costs_calendar_year) cost *= DayLengthFactor();
|
||||
return cost;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user