Reset random triggers after all chains have been resolved
commit70b32ae147ffac6f924105c2fe5f7499ef8b1e63
authorfrosch <frosch@openttd.org>
Wed, 25 Oct 2017 15:38:14 +0000 (25 15:38 +0000)
committercirdan <cirdansw@gmail.com>
Tue, 6 Feb 2018 19:16:40 +0000 (6 20:16 +0100)
tree448b7a4a478a377229f8270d8003dcf510d6ecdd
parentfd3693d1128941bce6369c7edc8dd3244dc84118
Reset random triggers after all chains have been resolved

(openttd r27928) -Fix: [NewGRF] While executing random triggers,
var 5F should include the new triggers.
-Fix: [NewGRF] Reset used random triggers only after all A123 chains
have been resolved, so that all RA2 in all chains can test the shard
triggers. This also includes multiple RA2 in the same A123 chain.
-Fix: [NewGRF] Industry random triggers are stored per tile, even
when randomising the shared random bits of the parent industry.
12 files changed:
src/newgrf_engine.cpp
src/newgrf_engine.h
src/newgrf_house.cpp
src/newgrf_house.h
src/newgrf_industries.cpp
src/newgrf_industries.h
src/newgrf_industrytiles.cpp
src/newgrf_industrytiles.h
src/newgrf_spritegroup.cpp
src/newgrf_spritegroup.h
src/newgrf_station.cpp
src/newgrf_station.h