Custom bridge heads: Initial implementation

This commit is contained in:
Jonathan G Rennison
2017-02-05 18:07:10 +00:00
parent 1f727e9029
commit da177d063f
12 changed files with 433 additions and 106 deletions

View File

@@ -2474,6 +2474,15 @@ void DirtyCompanyInfrastructureWindows(CompanyID company)
SetWindowDirty(WC_COMPANY_INFRASTRUCTURE, company);
}
/**
* Redraw all windows with all company infrastructure counts.
*/
void DirtyAllCompanyInfrastructureWindows()
{
SetWindowClassesDirty(WC_COMPANY);
SetWindowClassesDirty(WC_COMPANY_INFRASTRUCTURE);
}
struct BuyCompanyWindow : Window {
BuyCompanyWindow(WindowDesc *desc, WindowNumber window_number) : Window(desc)
{