summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-05-26 23:14:02 +0000
committeryexo <yexo@openttd.org>2009-05-26 23:14:02 +0000
commitd982ec81dfec20bac9f04c1d8c50a9efdb7b53bb (patch)
tree12e2d27976683d1abf82d120ce23e05e4d238199 /src/company_cmd.cpp
parent118d444be25efe89be1a971d5dafe65796f9b810 (diff)
downloadopenttd-d982ec81dfec20bac9f04c1d8c50a9efdb7b53bb.tar.xz
(svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 06948ee6c..58ff40a97 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -436,11 +436,7 @@ 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;
- }
+ SetDefaultCompanySettings(c->index);
GeneratePresidentName(c);