mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
This commit is contained in:
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…
Reference in New Issue
Block a user