summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-09 18:27:40 +0000
committerrubidium <rubidium@openttd.org>2007-12-09 18:27:40 +0000
commitaa39d2a618abff994f71b0f8a36b736ae0edbf98 (patch)
tree8d51772341e9000a1c8f0b82103c514a48abe512 /src/newgrf_industries.cpp
parenteff1c37b77eb07b04d5e76bd4be7820f5f074aeb (diff)
downloadopenttd-aa39d2a618abff994f71b0f8a36b736ae0edbf98.tar.xz
(svn r11608) -Fix: do not trigger industries, but only the industry's tiles.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 603fba8f4..4cfec51f2 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -535,19 +535,3 @@ void IndustryProductionCallback(Industry *ind, int reason)
InvalidateWindow(WC_INDUSTRY_VIEW, ind->index);
}
-
-void DoTriggerIndustry(Industry *ind, IndustryTileTrigger trigger)
-{
- ResolverObject object;
-
- NewIndustryResolver(&object, ind->xy, ind);
- object.callback = CBID_RANDOM_TRIGGER;
- object.trigger = trigger;
-
- const SpriteGroup *group = Resolve(GetIndustrySpec(ind->type)->grf_prop.spritegroup, &object);
- if (group == NULL) return;
-
- byte new_random_bits = Random();
- ind->random &= ~object.reseed;
- ind->random |= new_random_bits & object.reseed;
-}