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

@@ -792,7 +792,7 @@ bool AddInflation(bool check_year)
void RecomputePrices()
{
/* Setup maximum loan */
_economy.max_loan = (_settings_game.difficulty.max_loan * _economy.inflation_prices >> 16) / 50000 * 50000;
_economy.max_loan = ((uint64)_settings_game.difficulty.max_loan * _economy.inflation_prices >> 16) / 50000 * 50000;
/* Setup price bases */
for (Price i = PR_BEGIN; i < PR_END; i++) {