Changeset - r7075:64428d6c4100
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-06-26 13:46:56
truelight@openttd.org
(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1647,7 +1647,7 @@ static void ExtChangeIndustryProduction(
 
					 *  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;
0 comments (0 inline, 0 general)