Changeset - r11909:ed0a218be8e2
[Not reviewed]
master
0 2 0
yexo - 16 years ago 2009-05-16 00:16:43
yexo@openttd.org
(svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/ai/regression/regression.txt
Show inline comments
 
@@ -1072,7 +1072,7 @@
 
  GetAutoRenewStatus();        true
 
  SetAutoRenewStatus(true);    false
 
  SetAutoRenewStatus(false);   true
 
  GetAutoRenewMonths();        -6
 
  GetAutoRenewMonths();        6
 
  SetAutoRenewMonths(-12);     true
 
  GetAutoRenewMonths();        -12
 
  SetAutoRenewMonths(-12);     false
src/company_cmd.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)