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 near zero-length sliders being placeable and crashing the game #25916

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

OliBomby
Copy link
Contributor

closes #25886

So ComposerDistanceSnapProvider.FindSnappedDistance() can sometimes return a distance value which is near zero (1.98951966E-13) due to float precision. Near zero distance values were considered valid for sliders and other hit objects which have a duration, but not anymore. I also made sure dragging near zero duration sliders on the timeline doesnt crash the game.

@smoogipoo smoogipoo merged commit ff6a02b into ppy:master Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increasing the length of a zero-length slider in editor crashes the game
2 participants