Changeset - r26516:d2c5d77e0db5
[Not reviewed]
master
0 1 0
SamuXarick - 2 years ago 2022-11-07 22:54:04
43006711+SamuXarick@users.noreply.github.com
Fix: Refresh company window when switching companies (#9910)
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_cmd.cpp
Show inline comments
 
@@ -115,8 +115,11 @@ void SetLocalCompany(CompanyID new_compa
 

	
 
	_current_company = _local_company = new_company;
 

	
 
	/* Delete any construction windows... */
 
	if (switching_company) CloseConstructionWindows();
 
	if (switching_company) {
 
		InvalidateWindowClassesData(WC_COMPANY);
 
		/* Delete any construction windows... */
 
		CloseConstructionWindows();
 
	}
 

	
 
	/* ... and redraw the whole screen. */
 
	MarkWholeScreenDirty();
0 comments (0 inline, 0 general)