Changeset - r17867:e4ee99baaff5
[Not reviewed]
master
0 1 0
planetmaker - 13 years ago 2011-07-19 16:52:30
planetmaker@openttd.org
(svn r22673) -Add #4690: Provide random bits in var 0x10 for callback 0x3B in all cases (Hirundo)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1091,7 +1091,7 @@ static void ProduceIndustryGoods(Industr
 
		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);
0 comments (0 inline, 0 general)