1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(svn r16287) -Fix: fix possible (in theory) desync related to autorenew settings

This commit is contained in:
yexo
2009-05-12 22:32:22 +00:00
parent 095a30efb0
commit 90ba8e1bc8
2 changed files with 5 additions and 7 deletions

View File

@@ -754,6 +754,11 @@ static void MakeNewGameDone()
/* Create a single company */
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;
IConsoleCmdExec("exec scripts/game_start.scr 0");
SetLocalCompany(COMPANY_FIRST);