Add setting to scale primary industry cargo production

This commit is contained in:
Jonathan G Rennison
2020-12-21 20:47:44 +00:00
parent c7fa284db4
commit 8ac436f507
8 changed files with 26 additions and 2 deletions

View File

@@ -1104,7 +1104,7 @@ static void UpdateIndustryProduction(Industry *i)
for (byte j = 0; j < lengthof(i->produced_cargo); j++) {
if (i->produced_cargo[j] != CT_INVALID) {
i->last_month_production[j] = 8 * i->production_rate[j];
i->last_month_production[j] = ScaleQuantity(8 * i->production_rate[j], _settings_game.economy.industry_cargo_scale_factor);
}
}
}