summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-26 13:46:56 +0000
committertruelight <truelight@openttd.org>2007-06-26 13:46:56 +0000
commit65455f5e07e16dcc889b3f585e4a66b11c82870e (patch)
treea4f540edb5d6412f66c152b3235a58a01f5ccde6
parenta1d3c96040e5d1b082b9c0d12210858b4ad5f0d2 (diff)
downloadopenttd-65455f5e07e16dcc889b3f585e4a66b11c82870e.tar.xz
(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 1c6980d18..c7a6ff106 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -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;