mirror of https://github.com/OpenTTD/OpenTTD
Fix: Refresh company window when switching companies (#9910)
parent
b6a899eb2b
commit
8c4a70e05e
|
@ -115,8 +115,11 @@ void SetLocalCompany(CompanyID new_company)
|
||||||
|
|
||||||
_current_company = _local_company = new_company;
|
_current_company = _local_company = new_company;
|
||||||
|
|
||||||
|
if (switching_company) {
|
||||||
|
InvalidateWindowClassesData(WC_COMPANY);
|
||||||
/* Delete any construction windows... */
|
/* Delete any construction windows... */
|
||||||
if (switching_company) CloseConstructionWindows();
|
CloseConstructionWindows();
|
||||||
|
}
|
||||||
|
|
||||||
/* ... and redraw the whole screen. */
|
/* ... and redraw the whole screen. */
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
|
|
Loading…
Reference in New Issue