(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy

pull/155/head
truelight 18 years ago
parent a1d3c96040
commit 65455f5e07

@ -1647,7 +1647,7 @@ static void ExtChangeIndustryProduction(Industry *i)
* stuck there for ever). */
new_prod += ((RandomRange(old_prod == 4 ? 55 : 50) + 10) * old_prod) >> 8;
new_prod = clamp(new_prod, 0, 255);
new_prod = clamp(new_prod, 4, 255);
if (new_prod == old_prod) {
closeit = false;
continue;

Loading…
Cancel
Save