Duplicate properties in Action00
Posted: 05 Dec 2019 21:25
Does it matter what order Action00 properties appear in? Is it meaningful for an Action00 to contain the same property more than once?
I am seeing cases in dutchtrains.grf in which Trains property 0x1D (refit cargo types) is set multiple times, after various other cargo related properties are set. The value appears to be the same for each repeat, so I guess that's fine. Perhaps some artifact from NML processing...
But I have other examples in which property 0x26 (retire vehicle early) is first set to a non-zero value, and later set to 0 in the same Action00. I thought this might be unintended but it appears explicitly in the NML. Unless that code is itself generated and this is an artifact of that...
Cheers.
I am seeing cases in dutchtrains.grf in which Trains property 0x1D (refit cargo types) is set multiple times, after various other cargo related properties are set. The value appears to be the same for each repeat, so I guess that's fine. Perhaps some artifact from NML processing...
But I have other examples in which property 0x26 (retire vehicle early) is first set to a non-zero value, and later set to 0 in the same Action00. I thought this might be unintended but it appears explicitly in the NML. Unless that code is itself generated and this is an artifact of that...
Cheers.