Add setting for whether to show vehicle running costs per calendar year

See #660
This commit is contained in:
Jonathan G Rennison
2024-02-26 20:50:20 +00:00
parent a429bddbac
commit 5d7c87f5e4
10 changed files with 31 additions and 9 deletions

View File

@@ -206,7 +206,7 @@ static StringID GetRunningCostString()
{
if (EconTime::UsingWallclockUnits()) {
return STR_ENGINE_PREVIEW_RUNCOST_PERIOD;
} else if (DayLengthFactor() > 1) {
} else if (DayLengthFactor() > 1 && !_settings_client.gui.show_running_costs_calendar_year) {
return STR_ENGINE_PREVIEW_RUNCOST_ORIG_YEAR;
} else {
return STR_ENGINE_PREVIEW_RUNCOST_YEAR;