1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-25 02:25:16 +08:00
osu-lazer/osu.Game/Screens/Edit/Compose
Bartłomiej Dach 8423d9de9b
Fix distance snap grid colours being off-by-one in certain cases
Closes https://github.com/ppy/osu/issues/31909.

Previously: https://github.com/ppy/osu/pull/30062.

Happening because of rounding errors - in this case the beat index
pre-flooring was something like a 0.003 off of a full beat, which would
get floored down rather than rounded up which created the discrepancy.
But also we don't want to round *too* far, which is why this
frankenstein solution has to exist I think. This is probably all
exacerbated by stable not handling decimal control point start times.

Would add tests if not for the fact that this is like extremely annoying
to test.
2025-02-17 10:11:23 +01:00
..
Components Fix distance snap grid colours being off-by-one in certain cases 2025-02-17 10:11:23 +01:00
ComposeScreen.cs Apply snapping when pasting hitobjects 2025-01-20 01:25:22 +01:00
HitObjectUsageEventBuffer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
IPlacementHandler.cs Fix placement blueprints sometimes not behaving correctly with touch input 2024-10-23 16:51:21 -04:00