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 headup hole lookup #268

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

zear
Copy link
Collaborator

@zear zear commented Dec 10, 2022

When searching for a particular headup slot, don't return on the first empty hole, but rather try to find if the matching slot is in use.

This resolves a bug where two headups of the same type could end up displayed on top of each other: #267

Fix confirmed with OG disassembly.

When searching for a particular headup slot, don't return on the first
empty hole, but rather try to find if the matching slot is in use.

This resolves a bug where two headups of the same type could end up
displayed on top of each other.

Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Copy link
Owner

@dethrace-labs dethrace-labs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I had noticed this myself lately (the problem, not the fix)

@dethrace-labs dethrace-labs merged commit 1531f4a into dethrace-labs:main Dec 11, 2022
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.

3 participants