summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-11 21:05:50 +0000
committerrubidium <rubidium@openttd.org>2007-11-11 21:05:50 +0000
commit1e3e5bf2cfa4ee55d78e8f265a74e5220757026d (patch)
tree11da67236c08838247063bac7dbfc4a212aba879 /src
parent084ede9dcadcb2ebe75de15f95eec778c345d241 (diff)
downloadopenttd-1e3e5bf2cfa4ee55d78e8f265a74e5220757026d.tar.xz
(svn r11415) -Fix [FS#1428]: do not ignore the autorenew settings for new games when creating a new game.
Diffstat (limited to 'src')
-rw-r--r--src/players.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 0773bb0ab..4ccd5dc7c 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -28,6 +28,7 @@
#include "window.h"
#include "player_face.h"
#include "group.h"
+#include "settings.h"
/**
* Sets the local player and updates the patch settings that are set on a
@@ -489,9 +490,9 @@ Player *DoStartupNewPlayer(bool is_ai)
/* Engine renewal settings */
p->engine_renew_list = NULL;
p->renew_keep_length = false;
- p->engine_renew = false;
- p->engine_renew_months = -6;
- p->engine_renew_money = 100000;
+ p->engine_renew = _patches_newgame.autorenew;
+ p->engine_renew_months = _patches_newgame.autorenew_months;
+ p->engine_renew_money = _patches_newgame.autorenew_money;
GeneratePresidentName(p);