(svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies.

This commit is contained in:
yexo
2009-05-26 11:40:14 +00:00
parent b19d0e0254
commit a10e5f707a
7 changed files with 95 additions and 36 deletions

View File

@@ -75,13 +75,6 @@ void SetLocalCompany(CompanyID new_company)
_local_company = new_company;
/* Do not update the settings if we are in the intro GUI */
const Company *c = Company::GetIfValid(new_company);
if (_game_mode != GM_MENU && c != NULL) {
_settings_client.company = c->settings;
InvalidateWindow(WC_GAME_OPTIONS, 0);
}
/* Delete any construction windows... */
DeleteConstructionWindows();