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

This commit is contained in:
truelight 2007-06-26 13:46:56 +00:00
parent a1d3c96040
commit 65455f5e07

View File

@ -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;