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

Flipped sign in BaseGrid.GetNeighbors #3

Open
javisar opened this issue May 1, 2024 · 0 comments
Open

Flipped sign in BaseGrid.GetNeighbors #3

javisar opened this issue May 1, 2024 · 0 comments

Comments

@javisar
Copy link

javisar commented May 1, 2024

I think there is an error in BaseGrid.GetNeighbors

The line:
if (tSD3 && this.IsWalkableAt(pos.Set(tX - 1, tY, tZ + 1)))
is duplicated.
The second one should be:
if (tSD3 && this.IsWalkableAt(pos.Set(tX - 1, tY, tZ - 1)))

Thanks a lot for this project!

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

No branches or pull requests

1 participant