summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-05-12 22:32:22 +0000
committeryexo <yexo@openttd.org>2009-05-12 22:32:22 +0000
commit90ba8e1bc83b6b5fd0477ce962675e81d072df4c (patch)
tree0cc176d684aebad1695f8a1a41feb3a0d62f7825 /src/openttd.cpp
parent095a30efb07f72f5738d35b9a5988e5f103ab5c5 (diff)
downloadopenttd-90ba8e1bc83b6b5fd0477ce962675e81d072df4c.tar.xz
(svn r16287) -Fix: fix possible (in theory) desync related to autorenew settings
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index c4e28898e..701db0dc6 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -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);