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

This commit is contained in:
Pavel Stupnikov
2020-12-16 23:56:32 +03:00
committed by GitHub
parent d989fb516b
commit b2895dfcd0
6 changed files with 24 additions and 18 deletions

View File

@@ -553,7 +553,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;