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

Fixed collapse_check logic #72962

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

PatrikLundell
Copy link
Contributor

@PatrikLundell PatrikLundell commented Apr 11, 2024

Summary

None

Purpose of change

Fix #72960, e.g. the map::collapse_check logic being incorrect.

Describe the solution

Remove the static assignments in the loops with a single check at the top and bail out when a tree top is processed.

Describe alternatives you've considered

Leave it to someone else.

Testing

Chopped down a tree that had a tree top and verified the treetop was gone afterwards.
Then hacked the collapse check to return a really large number, virtually ensuring it would never roll a collapse and performed the tree chopping again. This time the treetop remained.

Additional context

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Apr 11, 2024
@Maleclypse Maleclypse merged commit 34f99c8 into CleverRaven:master Apr 14, 2024
27 of 30 checks passed
@PatrikLundell PatrikLundell deleted the fix_collapse_check branch April 14, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

map::collapse_check SINGLE_SUPPORT code broken
2 participants