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

Fix path calculation on maps with waterfalls and muddy slopes #643

Merged

Conversation

hanzi
Copy link
Collaborator

@hanzi hanzi commented Feb 1, 2025

Description

Depending on which direction the pathfinding was checking a tile from, it was possible that it would get a negative height of a waterfall or muddy slope.

This led to the cost of that path becoming negative and potentially leading to an infinite loop.

Fixes #640

Checklist

  • Black Linter has been ran, using --line-length 120 argument
  • Wiki has been updated (if relevant)

hanzi added 2 commits February 1, 2025 08:40
Depending on which direction the pathfinding was checking a tile from, it was possible that it would get a _negative_ height of a waterfall or muddy slope.

This led to the cost of that path becoming negative and potentially leading to an infinite loop.

Fixes 40Cakes#640
@hanzi hanzi force-pushed the fix-path-calculation-for-waterfall-and-muddy-slope branch from d00fb3d to 6184956 Compare February 1, 2025 13:45
@hanzi hanzi merged commit bdde862 into 40Cakes:main Feb 1, 2025
1 check passed
@hanzi hanzi deleted the fix-path-calculation-for-waterfall-and-muddy-slope branch February 1, 2025 16:11
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 this pull request may close these issues.

Bot Crashes in Feebas Mode on RSE
2 participants