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]: CreateRandomPath not updating tile nor dir for each step it advances #12279

Closed
SamuXarick opened this issue Mar 12, 2024 · 0 comments · Fixed by #12286
Closed

[Bug]: CreateRandomPath not updating tile nor dir for each step it advances #12279

SamuXarick opened this issue Mar 12, 2024 · 0 comments · Fixed by #12286

Comments

@SamuXarick
Copy link
Contributor

SamuXarick commented Mar 12, 2024

Version of OpenTTD

OpenTTD 20240312-master-g1addeddc07

Expected result

Move to the next tile and retrieve the next trackdirs available each step.

Actual result

CreateRandomPath tile and trackdir aren't being updated for each step it advances, generating a bad path_cache as a result.

Steps to reproduce

it's not updating tile nor dir for each time it advances, also, going north should alternate between TRACKDIR_LEFT_N and TRACKDIR_RIGHT_N:
image

look at ship 3.zip

@SamuXarick SamuXarick changed the title [Bug]: CreateRandomPath not updating tile nor dir for each step it advances, GetRandomFollowUpTrackdir forbids 90 degree turns even when it's the only choice [Bug]: CreateRandomPath not updating tile nor dir for each step it advances Mar 12, 2024
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 12, 2024
CreateRandomPath tile and trackdir aren't being updated for each step it advances, generating a bad path_cache as a result.

Move to the next tile and retrieve the next trackdirs available each step.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 12, 2024
CreateRandomPath tile and trackdir aren't being updated for each step it advances, generating a bad path_cache as a result.

Move to the next tile and retrieve the next trackdirs available each step.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 13, 2024
CreateRandomPath tile and trackdir aren't being updated for each step it advances, generating a bad path_cache as a result.

Move to the next tile and retrieve the next trackdirs available each step.
SamuXarick added a commit to SamuXarick/OpenTTD that referenced this issue Mar 13, 2024
CreateRandomPath tile and trackdir aren't being updated for each step it advances, generating a bad path_cache as a result.

Move to the next tile and retrieve the next trackdirs available each step.
michicc pushed a commit to michicc/OpenTTD that referenced this issue Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant