Mercurial > hg > openttd
changeset 7865:ddab1d1c03d4 draft
(svn r11415) -Fix [FS#1428]: do not ignore the autorenew settings for new games when creating a new game.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 11 Nov 2007 21:05:50 +0000 |
parents | dee7f1c1a1e2 |
children | b0108d3156da |
files | src/players.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* 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);