From c299a38e1f33464fd8c521915bc2391623b56971 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 16 May 2009 00:16:43 +0000 Subject: (svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings --- src/company_cmd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 77e8ddeb3..0fab4b840 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -443,6 +443,12 @@ Company *DoStartupNewCompany(bool is_ai) c->inaugurated_year = _cur_year; RandomCompanyManagerFaceBits(c->face, (GenderEthnicity)Random(), false); // create a random company manager face + /* Settings for non-ai companies are copied from the client settings later. */ + if (is_ai) { + c->settings.engine_renew_money = 100000; + c->settings.engine_renew_months = 6; + } + GeneratePresidentName(c); InvalidateWindow(WC_GRAPH_LEGEND, 0); -- cgit v1.2.3-70-g09d2