diff options
author | planetmaker <planetmaker@openttd.org> | 2011-06-09 16:35:09 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-06-09 16:35:09 +0000 |
commit | e5a88a107750b5119b483eb351f504f05a3f599a (patch) | |
tree | 206782bfa78e3c86e274e93ed23a30d56e2245fb /src/industry_cmd.cpp | |
parent | 692d3433fb130800494d61f254a93a18719c75e1 (diff) | |
download | openttd-e5a88a107750b5119b483eb351f504f05a3f599a.tar.xz |
(svn r22548) -Codechange: Name also the magic number for the lumber mill's tree cutting action (FeyFre)
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index d80652faa..4a0391a50 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1086,7 +1086,7 @@ static void ProduceIndustryGoods(Industry *i) if (plant) PlantRandomFarmField(i); } if ((indbehav & INDUSTRYBEH_CUT_TREES) != 0) { - bool cut = ((i->counter & 0x1FF) == 0); + bool cut = ((i->counter % INDUSTRY_CUT_TREE_TICKS) == 0); if (HasBit(indsp->callback_mask, CBM_IND_SPECIAL_EFFECT)) { cut = (GetIndustryCallback(CBID_INDUSTRY_SPECIAL_EFFECT, 0, 1, i, i->type, i->location.tile) != 0); } |