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 setAng imprecision #2485

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Conversation

Fasteroid
Copy link
Contributor

@Fasteroid Fasteroid commented Nov 14, 2022

Fixes #2484

Tested setAng( ang(0, 2^32, 0) ) with this change and it doesn't normalize is needed to avoid crashes now.

@Fasteroid
Copy link
Contributor Author

Fasteroid commented Nov 14, 2022

Just did more testing, still no crashes for both positive and negative:

@persist N
interval(250)

entity():setAng( ang(0,2^N,0) )
N = N + 1
print(N)

@thegrb93 thegrb93 merged commit f62aee9 into wiremod:master Nov 14, 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.

:setAng() and :angles() precision issues
2 participants