From f2a93dba0d7c4e4f23d9d5cb36e1ede8c02eeeca Mon Sep 17 00:00:00 2001 From: Tyler Trahan <55058389+2TallTyler@users.noreply.github.com> Date: Tue, 15 Dec 2020 03:58:37 -0500 Subject: [PATCH] Change: set the default setting for autorenew to on for new games (#8352) --- regression/regression/main.nut | 1 + regression/regression/result.txt | 3 ++- src/table/company_settings.ini | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/regression/regression/main.nut b/regression/regression/main.nut index 65742d71b3..0434524d2c 100644 --- a/regression/regression/main.nut +++ b/regression/regression/main.nut @@ -433,6 +433,7 @@ function Regression::Company() print(" GetAutoRenewStatus(); " + AICompany.GetAutoRenewStatus(AICompany.COMPANY_SELF)); print(" SetAutoRenewStatus(true); " + AICompany.SetAutoRenewStatus(true)); print(" SetAutoRenewStatus(false); " + AICompany.SetAutoRenewStatus(false)); + print(" GetAutoRenewStatus(); " + AICompany.GetAutoRenewStatus(AICompany.COMPANY_SELF)); print(" GetAutoRenewMonths(); " + AICompany.GetAutoRenewMonths(AICompany.COMPANY_SELF)); print(" SetAutoRenewMonths(-12); " + AICompany.SetAutoRenewMonths(-12)); print(" GetAutoRenewMonths(); " + AICompany.GetAutoRenewMonths(AICompany.COMPANY_SELF)); diff --git a/regression/regression/result.txt b/regression/regression/result.txt index 4cb74aaa54..ab441256d5 100644 --- a/regression/regression/result.txt +++ b/regression/regression/result.txt @@ -615,11 +615,12 @@ ERROR: IsEnd() is invalid as Begin() is never called GetCompanyHQ(): 33153 BuildCompanyHQ(): false GetLastErrorString(): ERR_AREA_NOT_CLEAR - GetAutoRenewStatus(); false + GetAutoRenewStatus(); true SetAutoRenewStatus(true); true GetAutoRenewStatus(); true SetAutoRenewStatus(true); true SetAutoRenewStatus(false); true + GetAutoRenewStatus(); false GetAutoRenewMonths(); 6 SetAutoRenewMonths(-12); true GetAutoRenewMonths(); -12 diff --git a/src/table/company_settings.ini b/src/table/company_settings.ini index 86035b9d77..8f9bee3bfe 100644 --- a/src/table/company_settings.ini +++ b/src/table/company_settings.ini @@ -38,7 +38,7 @@ cat = SC_ADVANCED [SDT_BOOL] base = CompanySettings var = engine_renew -def = false +def = true str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT cat = SC_BASIC