(svn r10406) -Fix [FS#968]: only industries in the temperate climate should be affected by the "do not increase production" flag.

This commit is contained in:
rubidium
2007-07-01 17:21:25 +00:00
parent 82dbf4b467
commit d73e490c52
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}