mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-05 22:04:57 +00:00
(svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings
This commit is contained in:
parent
31eff1d4c3
commit
c299a38e1f
@ -1072,7 +1072,7 @@
|
||||
GetAutoRenewStatus(); true
|
||||
SetAutoRenewStatus(true); false
|
||||
SetAutoRenewStatus(false); true
|
||||
GetAutoRenewMonths(); -6
|
||||
GetAutoRenewMonths(); 6
|
||||
SetAutoRenewMonths(-12); true
|
||||
GetAutoRenewMonths(); -12
|
||||
SetAutoRenewMonths(-12); false
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user