Skip to content

Commit

Permalink
Merge pull request #26281 from iminlikewithyou/fix-precision
Browse files Browse the repository at this point in the history
Fix beats being counted incorrectly in the timing editor
  • Loading branch information
peppy committed Jan 2, 2024
2 parents e107338 + fbedcb2 commit 5b8e9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Screens/Edit/Timing/WaveformComparisonDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private void regenerateDisplay(bool animated)
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++;
}
Expand Down

0 comments on commit 5b8e9a5

Please sign in to comment.