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 for head angles being off (most notably player heads). #29

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

shouttrickword
Copy link
Contributor

Rust modulo operator behaves strangely on floating point numbers in certain situations, a bit more information about this is available at the euclidean modulo rfc.

A working workaround is to convert the number into integer first and then modulo.

@shouttrickword
Copy link
Contributor Author

Also closes #28

@StackDoubleFlow StackDoubleFlow merged commit 69585ed into MCHPR:master Mar 18, 2021
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.

2 participants