diff options
author | yexo <yexo@openttd.org> | 2009-05-15 23:55:06 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-05-15 23:55:06 +0000 |
commit | 31eff1d4c30803e09083320886630da8b28690d1 (patch) | |
tree | b8c0c563425389a5e9514760bb5e1cc9cf0013c1 /src/openttd.cpp | |
parent | aea2fcd0a09fa47caf022934ba8029ec327906f7 (diff) | |
download | openttd-31eff1d4c30803e09083320886630da8b28690d1.tar.xz |
(svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 1aed1c566..ad3babbe4 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -755,15 +755,12 @@ static void MakeNewGameDone() DoStartupNewCompany(false); Company *c = GetCompany(COMPANY_FIRST); - c->engine_renew = _settings_client.gui.autorenew; - c->engine_renew_months = _settings_client.gui.autorenew_months; - c->engine_renew_money = _settings_client.gui.autorenew_money; + c->settings = _settings_client.company; IConsoleCmdExec("exec scripts/game_start.scr 0"); SetLocalCompany(COMPANY_FIRST); _current_company = _local_company; - DoCommandP(0, (_settings_client.gui.autorenew << 15 ) | (_settings_client.gui.autorenew_months << 16) | 4, _settings_client.gui.autorenew_money, CMD_SET_AUTOREPLACE); InitializeRailGUI(); @@ -854,7 +851,8 @@ static void StartScenario() SetLocalCompany(COMPANY_FIRST); _current_company = _local_company; - DoCommandP(0, (_settings_client.gui.autorenew << 15 ) | (_settings_client.gui.autorenew_months << 16) | 4, _settings_client.gui.autorenew_money, CMD_SET_AUTOREPLACE); + Company *c = GetCompany(COMPANY_FIRST); + c->settings = _settings_client.company; MarkWholeScreenDirty(); } |