Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRIGGER_VEHICLE_SERVICE is not triggered for wagons #5777

Closed
DorpsGek opened this issue Oct 4, 2013 · 2 comments
Closed

TRIGGER_VEHICLE_SERVICE is not triggered for wagons #5777

DorpsGek opened this issue Oct 4, 2013 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Oct 4, 2013

George opened the ticket and wrote:

R25810

the bug can be tested with xUSSR wagon 15-886. When entering depot it should be reversed with 50% probability, but it never happen.

random_switch (FEAT_TRAINS, SELF, tanker_15_886_sprites_2, bitmask(TRIGGER_VEHICLE_SERVICE))
{
independent: tanker_15_886_sprites_l;
independent: tanker_15_886_sprites_r;
1: tanker_15_886_sprites_l;
1: tanker_15_886_sprites_r;
}

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/5777
@DorpsGek
Copy link
Member Author

frosch wrote:

Wagons are triggered for rerandomisation, but the NewGRF does not rerandomise any bits.

I believe this is caused by the "short_vehicle" template, which chains to "dummy_sprites" if the vehicle is in a depot. So, the random switch is not reached.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5777#comment12754

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Bug in NewGRF


This comment was imported from FlySpray: https://bugs.openttd.org/task/5777

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Vehicles labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant