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
This is a dormant bug, now the code works but only through accident.
From r10006 different signals are allowed on a single tile. When loading a savegame file v63 or older signal type/variant bits (m2 bits 0..2) are being duplicated (at m2 bits 4..6). The code responsible for this is inside afterload.cpp around line 1505:
You can see SetSignalType and SetSignalVariant. BUT these two functions changed in r10006 when PBS'es were added, we have new functions operating on new bits. Currently signal type occupies 3 bits, not 2. Also signal variant bits changed from bit 2 to bit 3. The code works only because the signal variant bit is carried with signal type (it produces invalid signal types for a while!). It may cause whole sort of problems, especially if one tries to change signal bits again.
adf88 opened the ticket and wrote:
Attachments
Reported version: Version?
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5732
The text was updated successfully, but these errors were encountered: