mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Close graph windows when changing timekeeping mode
This commit is contained in:
parent
c511f93f24
commit
c7e95d5b03
@ -1282,6 +1282,13 @@ static void ChangeTimekeepingUnits(int32_t)
|
||||
}
|
||||
|
||||
UpdateTimeSettings(0);
|
||||
CloseWindowByClass(WC_PAYMENT_RATES);
|
||||
CloseWindowByClass(WC_COMPANY_VALUE);
|
||||
CloseWindowByClass(WC_PERFORMANCE_HISTORY);
|
||||
CloseWindowByClass(WC_DELIVERED_CARGO);
|
||||
CloseWindowByClass(WC_OPERATING_PROFIT);
|
||||
CloseWindowByClass(WC_INCOME_GRAPH);
|
||||
CloseWindowByClass(WC_STATION_CARGO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user