summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-07-19 16:52:30 +0000
committerplanetmaker <planetmaker@openttd.org>2011-07-19 16:52:30 +0000
commitdfa45e79fec934a16576af6161e66f5fd26b5108 (patch)
tree166333f4ef1c64d94a3817f8768420109fecdbac
parenta692db0704d3ee6d4f701e2296fc51e143675c0c (diff)
downloadopenttd-dfa45e79fec934a16576af6161e66f5fd26b5108.tar.xz
(svn r22673) -Add #4690: Provide random bits in var 0x10 for callback 0x3B in all cases (Hirundo)
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index f01241a05..ed9d2bfbc 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1091,7 +1091,7 @@ static void ProduceIndustryGoods(Industry *i)
if ((indbehav & INDUSTRYBEH_CUT_TREES) != 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);
+ cut = (GetIndustryCallback(CBID_INDUSTRY_SPECIAL_EFFECT, Random(), 1, i, i->type, i->location.tile) != 0);
}
if (cut) ChopLumberMillTrees(i);