changeset 17877:d6e6a19683c1 draft

(svn r22673) -Add #4690: Provide random bits in var 0x10 for callback 0x3B in all cases (Hirundo)
author planetmaker <planetmaker@openttd.org>
date Tue, 19 Jul 2011 16:52:30 +0000
parents 4e587088d7c2
children 8e6c1879a8da
files src/industry_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1091,7 +1091,7 @@
 		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);