Change cargo scaling settings to be linear instead of logarithmic

This commit is contained in:
Jonathan G Rennison
2024-01-16 18:02:34 +00:00
parent c8ff26f2b8
commit 1e0bb019a7
21 changed files with 190 additions and 96 deletions

View File

@@ -668,7 +668,7 @@ static void TownGenerateCargo(Town *t, CargoID ct, uint amount, StationFinder &s
amount = (amount + 1) >> 1;
}
amount = ScaleQuantity(amount, _settings_game.economy.town_cargo_scale_factor, true);
amount = _town_cargo_scaler.ScaleAllowTrunc(amount);
if (amount == 0) return;