diff options
author | smatz <smatz@openttd.org> | 2010-09-07 20:38:26 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-09-07 20:38:26 +0000 |
commit | a09bc6c366a5e8f174a70f63064fd0b7771d22b4 (patch) | |
tree | 9f2263e3668722f7b7fd99c883a2c2cd8c53de4e /src | |
parent | b57a3ae5ecda91c2a0f9771c1f914992e27416c0 (diff) | |
download | openttd-a09bc6c366a5e8f174a70f63064fd0b7771d22b4.tar.xz |
(svn r20764) -Codechange: minor coding style fix
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_cmd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 30c6503c8..68cc9d758 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1573,9 +1573,8 @@ static void DoCreateNewIndustry(Industry *i, TileIndex tile, IndustryType type, /* don't use smooth economy for industries using production related callbacks */ if (_settings_game.economy.smooth_economy && - !(HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_256_TICKS) || HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL)) && // production callbacks - !(HasBit(indspec->callback_mask, CBM_IND_MONTHLYPROD_CHANGE) || HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_CHANGE)) // production change callbacks - ) { + !(HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_256_TICKS) || HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_CARGO_ARRIVAL)) && // production callbacks + !(HasBit(indspec->callback_mask, CBM_IND_MONTHLYPROD_CHANGE) || HasBit(indspec->callback_mask, CBM_IND_PRODUCTION_CHANGE))) { // production change callbacks i->production_rate[0] = min((RandomRange(256) + 128) * i->production_rate[0] >> 8, 255); i->production_rate[1] = min((RandomRange(256) + 128) * i->production_rate[1] >> 8, 255); } |