mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 03:12:41 +00:00
(svn r10467) [0.5] -Backport from trunk (r10406, r10465):
- Fix: Visual glitches when a window is resized in the WE_CREATE callback (r10465) - Fix: Only industries in the temperate climate should be affected by the "do not increase production" flag [FS#968] (r10406)
This commit is contained in:
parent
b83f6733ca
commit
ed4a9edba5
@ -1618,7 +1618,7 @@ static void ExtChangeIndustryProduction(Industry *i)
|
|||||||
if (CHANCE16I(20, 1024, r)) new -= max(((RandomRange(50) + 10) * old) >> 8, 1U);
|
if (CHANCE16I(20, 1024, r)) new -= max(((RandomRange(50) + 10) * old) >> 8, 1U);
|
||||||
/* Chance of increasing becomes better when more is transported */
|
/* Chance of increasing becomes better when more is transported */
|
||||||
if (CHANCE16I(20 + (i->pct_transported[j] * 20 >> 8), 1024, r >> 16) &&
|
if (CHANCE16I(20 + (i->pct_transported[j] * 20 >> 8), 1024, r >> 16) &&
|
||||||
i->type != IT_OIL_WELL) {
|
(i->type != IT_OIL_WELL || _opt.landscape != LT_NORMAL)) {
|
||||||
new += max(((RandomRange(50) + 10) * old) >> 8, 1U);
|
new += max(((RandomRange(50) + 10) * old) >> 8, 1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user