(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.

This commit is contained in:
rubidium
2009-02-04 16:59:41 +00:00
parent b6e6be58da
commit ac7757324e
24 changed files with 64 additions and 43 deletions

View File

@@ -83,6 +83,12 @@ void SetLocalCompany(CompanyID new_company)
_settings_client.gui.autorenew_money = c->engine_renew_money;
InvalidateWindow(WC_GAME_OPTIONS, 0);
}
/* Delete any construction windows... */
DeleteConstructionWindows();
/* ... and redraw the whole screen. */
MarkWholeScreenDirty();
}
bool IsHumanCompany(CompanyID company)