diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2020-12-16 23:56:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 21:56:32 +0100 |
commit | b2895dfcd056798bb82957a55394a941c61376f5 (patch) | |
tree | 2fc6ba5bc8f39720c1434f0197729ad6307625b7 /src/company_cmd.cpp | |
parent | d989fb516bf271bc59c97d7580b1b66d849a1c1b (diff) | |
download | openttd-b2895dfcd056798bb82957a55394a941c61376f5.tar.xz |
Change: extend the allowed range for max loan setting (#8386)
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 25b3fe6fb..c871b64c9 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -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; |