forked from mirror/OpenTTD
(svn 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.
This commit is contained in:
@@ -383,12 +383,6 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
|
||||
return this->industry != NULL ? this->industry->random_triggers : 0;
|
||||
}
|
||||
|
||||
/* virtual */ void IndustriesScopeResolver::SetTriggers(int triggers) const
|
||||
{
|
||||
assert(this->industry != NULL && this->industry->index != INVALID_INDUSTRY);
|
||||
this->industry->random_triggers = triggers;
|
||||
}
|
||||
|
||||
/* virtual */ void IndustriesScopeResolver::StorePSA(uint pos, int32 value)
|
||||
{
|
||||
if (this->industry->index == INVALID_INDUSTRY) return;
|
||||
|
Reference in New Issue
Block a user