Change: extend the allowed range for max loan setting (#8386)

(cherry picked from commit b2895dfcd0)
This commit is contained in:
Pavel Stupnikov
2020-12-16 23:56:32 +03:00
committed by Jonathan G Rennison
parent e94656b5a5
commit b623d6f2ee
6 changed files with 27 additions and 20 deletions

View File

@@ -569,7 +569,7 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY)
ResetCompanyLivery(c);
_company_colours[c->index] = (Colours)c->colour;
c->money = c->current_loan = (100000ll * _economy.inflation_prices >> 16) / 50000 * 50000;
c->money = c->current_loan = (min(INITIAL_LOAN, _economy.max_loan) * _economy.inflation_prices >> 16) / 50000 * 50000;
c->share_owners[0] = c->share_owners[1] = c->share_owners[2] = c->share_owners[3] = INVALID_OWNER;