changeset 7075:80cc409b090c draft

(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
author truelight <truelight@openttd.org>
date Tue, 26 Jun 2007 13:46:56 +0000
parents 5c6956050c82
children 2cfd97ea12b5
files src/industry_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1647,7 +1647,7 @@
 					 *  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;