summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-01 17:21:25 +0000
committerrubidium <rubidium@openttd.org>2007-07-01 17:21:25 +0000
commitd73e490c523f13e08787ff341e6ebae06a480dd2 (patch)
treed8b9ee2e9559c5eb25defbb0007ccbbd8a28fdf4 /src/industry_cmd.cpp
parent82dbf4b4675165629204eadd5ad6cc6657be1a11 (diff)
downloadopenttd-d73e490c523f13e08787ff341e6ebae06a480dd2.tar.xz
(svn r10406) -Fix [FS#968]: only industries in the temperate climate should be affected by the "do not increase production" flag.
Diffstat (limited to 'src/industry_cmd.cpp')
-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 188a701a5..c20246c42 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1642,7 +1642,7 @@ static void ExtChangeIndustryProduction(Industry *i)
if (CHANCE16I(20, 1024, r)) new_prod -= max(((RandomRange(50) + 10) * old_prod) >> 8, 1U);
/* Chance of increasing becomes better when more is transported */
if (CHANCE16I(20 + (i->last_month_pct_transported[j] * 20 >> 8), 1024, r >> 16) &&
- (indspec->behaviour & INDUSTRYBEH_DONT_INCR_PROD) == 0) {
+ ((indspec->behaviour & INDUSTRYBEH_DONT_INCR_PROD) == 0 || _opt.landscape != LT_TEMPERATE)) {
new_prod += max(((RandomRange(50) + 10) * old_prod) >> 8, 1U);
}