JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
572 stars 130 forks source link

[Bug]: Signal is open despite slot being taken #620

Closed vtual closed 9 months ago

vtual commented 9 months ago

Version of OpenTTD

0.56.1 Windows 10

Expected result

Train should be stopped at signal with "acquire restriction or wait at signal" restriction when the slot is taken.

Actual result

Instead the signal is open

Steps to reproduce

Load the save game : JTCo, 15 Oct 1903 bug.zip One train is coming from the south west and should be stopped as the slot is already taken, but instead the signal is open.

By the way Japanese trains should run on the left but got confused hehe. Thanks for the patch pack and happy new year! :)

JGRennison commented 9 months ago

The signal has ended up being marked as unconditionally reserve-through. This is probably because it was in a previous signal program, but the flag was incorrectly not removed. As a temporary fix you can add and then remove a reserve through action to the end of the program.

vtual commented 9 months ago

Thanks, it works now!