(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:
rubidium 2007-07-07 18:01:26 +00:00
parent b83f6733ca
commit ed4a9edba5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -610,8 +610,8 @@ static Window *LocalAllocateWindow(
_last_z_window++; _last_z_window++;
} }
SetWindowDirty(w);
CallWindowEventNP(w, WE_CREATE); CallWindowEventNP(w, WE_CREATE);
SetWindowDirty(w);
return w; return w;
} }