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
Ships can only exit depots and locks via the two exits in the axial directions.
Actual result
When a ship is exiting a depot or lock and the next tile is impassable the ship will attempt to reverse using all other of the trackdirs reachable from the opposite DiagDirection, even in the case where the GetTileTrackStatus of the tile does not include those trackdirs. For locks and depots GetTileTrackStatus only includes the axial trackdirs.
This can alternatively result in a ship becoming trapped in a non-axial direction on the exit tile even when the other exit is available.
(This issue managed to trigger the CFollowTrackT::Follow assertion for one particular savegame when loaded in my branch, but I can't seem to reproduce this anywhere else. At a glance the assertion looks like it ought to get triggered here as well.
If I can reproduce this I will update the issue.)
Version of OpenTTD
Since #9610
Expected result
Ships can only exit depots and locks via the two exits in the axial directions.
Actual result
When a ship is exiting a depot or lock and the next tile is impassable the ship will attempt to reverse using all other of the trackdirs reachable from the opposite DiagDirection, even in the case where the GetTileTrackStatus of the tile does not include those trackdirs. For locks and depots GetTileTrackStatus only includes the axial trackdirs.
This can alternatively result in a ship becoming trapped in a non-axial direction on the exit tile even when the other exit is available.
(This issue managed to trigger the CFollowTrackT::Follow assertion for one particular savegame when loaded in my branch, but I can't seem to reproduce this anywhere else. At a glance the assertion looks like it ought to get triggered here as well.
If I can reproduce this I will update the issue.)
Steps to reproduce
Ship reverse testing, 1990-03-31.sav.zip
See ships 1 and 2
The text was updated successfully, but these errors were encountered: