1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 18:23:21 +08:00

Merge pull request #26281 from iminlikewithyou/fix-precision

Fix beats being counted incorrectly in the timing editor
This commit is contained in:
Dean Herbert 2024-01-02 11:44:20 +09:00 committed by GitHub
commit 5b8e9a5bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ namespace osu.Game.Screens.Edit.Timing
row.Alpha = time < selectedGroupStartTime || time > selectedGroupEndTime ? 0.2f : 1;
row.WaveformOffsetTo(-offset, animated);
row.WaveformScale = new Vector2(scale, 1);
row.BeatIndex = (int)Math.Floor(index);
row.BeatIndex = (int)Math.Round(index);
index++;
}