1
0
Fork 0

(svn r11528) -Fix (r11500): With smooth economy enabled, industries that should only decrease production would always increase it when more than 60% was transported.

release/0.6
maedhros 2007-11-26 19:23:53 +00:00
parent 71c10f7df7
commit 8e273e0f88
1 changed files with 5 additions and 1 deletions

View File

@ -2052,7 +2052,11 @@ static void ChangeIndustryProduction(Industry *i, bool monthly)
new_prod = old_prod = i->production_rate[j];
if (only_decrease || Chance16(1, 3)) mult *= -1;
if (only_decrease) {
mult = -1;
} else if (Chance16(1, 3)) {
mult *= -1;
}
if (Chance16(1, 22)) {
new_prod += mult * (max(((RandomRange(50) + 10) * old_prod) >> 8, 1U));