diff options
author | rubidium <rubidium@openttd.org> | 2008-04-23 00:14:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-23 00:14:49 +0000 |
commit | 97f78133d241275973651840b7b697af96321087 (patch) | |
tree | ce7256cb62030c63a9834a408c4ce5f57d1076c9 /src/newgrf_house.cpp | |
parent | 80a0435ba822f4b92d84f10744bec5a7028ee69b (diff) | |
download | openttd-97f78133d241275973651840b7b697af96321087.tar.xz |
(svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index aa462f8a8..604bb3660 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -547,6 +547,8 @@ static void DoTriggerHouse(TileIndex tile, HouseTrigger trigger, byte base_rando HouseID hid = GetHouseType(tile); HouseSpec *hs = GetHouseSpecs(hid); + if (hs->spritegroup == NULL) return; + NewHouseResolver(&object, hid, tile, GetTownByTile(tile)); object.callback = CBID_RANDOM_TRIGGER; |