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

doc-map: fix tile bitflag interpretation #98

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

66-m
Copy link
Contributor

@66-m 66-m commented May 27, 2024

The interpretation for the horizontal and vertical flips from the bitflag is the other way around.

The order of flips doesn't matter since it gives the same result, but to avoid confusion i swapped it too

@66-m 66-m changed the title doc-map: fix flag bitmap interpretation doc-map: fix flag bitflag interpretation May 27, 2024
@66-m 66-m changed the title doc-map: fix flag bitflag interpretation doc-map: fix tile bitflag interpretation May 27, 2024
@heinrich5991
Copy link
Owner

The problem is that it's not clear what a horizontal flip is. Does the x-axis remain in place or the y-axis? Both could reasonably be described as a horizontal flip. We need more precise language here.

@Patiga
Copy link
Collaborator

Patiga commented May 28, 2024

Relevant context: ddnet/ddnet#6132

The interpretation for the horizontal and vertical flips from the bitflag is the other way around.

The codebase had a different interpretation than the editor. I made the change to X/Y, which sadly didn't get any discussion, but should hopefully be more intuitive.
x-flip switches left <-> right, y-flip up <-> down

This should ofc be updated in the map docs 👍

The interpretation for the horizontal and vertical flips from the
bitflag is the other way around.

The order of flips doesn't matter since it gives the same result, but to
avoid confusion I swapped it too.

Also clarified what the flip directions mean.
@heinrich5991 heinrich5991 merged commit 05fd5e4 into heinrich5991:master Jun 27, 2024
8 checks passed
@heinrich5991
Copy link
Owner

Thanks for your pull request! I somehow forgot about it…

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.

None yet

3 participants