summaryrefslogtreecommitdiff
path: root/src
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
commit90fa779a244e2f2fcb6925ef3fabe2714fd550d0 (patch)
treea4f540edb5d6412f66c152b3235a58a01f5ccde6 /src
parent189fa7cca5510149719058c1baa9f8af76ea5145 (diff)
downloadopenttd-90fa779a244e2f2fcb6925ef3fabe2714fd550d0.tar.xz
(svn r10340) -Fix: make sure no industry production can ever hit < 32 with smooth_economy
Diffstat (limited to 'src')
-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;