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 collision comparison in PlayerNotOnBikeMoving #2104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GriffinRichards
Copy link
Member

The condition was optimized to a single comparison, which made it hard to read. While making it more readable I noticed that it was treating COLLISION_ROTATING_GATE specially despite it not having any special behavior. The result is that walking into a rotating gate that can't rotate won't update the player avatar correctly. This looks especially weird if you try to collide with a rotating gate by changing direction.

Before bug fix (walking head-on, and then trying to turn into it):
collision-bad

After bug fix (same inputs as above)
collision-good

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.

1 participant