You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Var 61 Query variable of n-th vehicle in chain has a limitation. It is not supported during a callback that is used to modify vehicle properties to avoid circular dependencies, which currently limits this variable to callbacks 1D, 2D, 31 and 32 plus outside callback scope.
Unfortunately, in xUSSR set most Electric engines/EMUs have different orientation (backward, forward) of graphics depending on vehicles nearby. With var 61 it is easily checked. But visual effects (spark) should be located according to graphics (front|rear part). But the same code with var 61 does not work in this case.
It is required to allow var 61 inside visual effect callback.
Callback 10 modifies properties. As such it may not use variable 61.
However, I think you can achieve your goal by positioning the sprites using 160, which does not modify properties and thus can access variable 61 (since r26988).
George opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/6137
The text was updated successfully, but these errors were encountered: