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

[Bug]: CheckShipReverse's returned path restricts ship movement, causing it to get lost #12228

Closed
SamuXarick opened this issue Mar 7, 2024 · 0 comments · Fixed by #12474
Closed

Comments

@SamuXarick
Copy link
Contributor

Version of OpenTTD

OpenTTD 20240307-master-g8fb26612c0

Expected result

Ship reverses when leaving Grindington Docks, meaning it's allowed to reach region 2,1 and isn't flagged as lost.

CheckShipReverse should try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.

Actual result

Ship doesn't reverse when leaving Grindington Docks, moves forward and gets cornered between the two docks, flagging the ship as lost.

CheckShipReverse restricts the path to regions 2,2 and 1,2, but the ship happens to be at the top corner of region 2,2, meaning it fails to find a path, defaults to returning false to reversing.

Steps to reproduce

ship checking reverse when leaving dock.zip

  1. Load the attached savegame
  2. Watch ship when it departs from Grindington Docks.
@SamuXarick SamuXarick changed the title [Bug]: Issues with CheckShipReverse [Bug]: CheckShipReverse's returned path restricts ship movement, causing it to get lost Mar 8, 2024
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 8, 2024
…first attempt

Try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 11, 2024
…first attempt

Try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 15, 2024
…first attempt

Try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 16, 2024
…first attempt

Try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 16, 2024
…first attempt

Try to mimic the same path results as ChooseShipTrack to maintain behaviour consistency.
Kuhnovic added a commit to Kuhnovic/OpenTTD that referenced this issue Mar 18, 2024
Kuhnovic added a commit to Kuhnovic/OpenTTD that referenced this issue Mar 19, 2024
Kuhnovic added a commit to Kuhnovic/OpenTTD that referenced this issue Apr 5, 2024
Kuhnovic added a commit to Kuhnovic/OpenTTD that referenced this issue Apr 10, 2024
glx22 pushed a commit to glx22/OpenTTD that referenced this issue Apr 18, 2024
glx22 pushed a commit to glx22/OpenTTD that referenced this issue Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment