1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-03 23:23:25 +08:00

Olibomby insisted on it being like this so i concede

This commit is contained in:
Marvin Schürz 2025-01-20 01:07:13 +01:00
parent a6ca9ba9fb
commit 3532ce1636

View File

@ -262,10 +262,9 @@ namespace osu.Game.Screens.Edit.Timing
private void updateBpmText() private void updateBpmText()
{ {
double bpm = Math.Round(interpolatedBpm.Value); double bpm = Precision.AlmostEquals(interpolatedBpm.Value, effectiveBpm, 1.0)
? effectiveBpm
if (Precision.AlmostEquals(bpm, effectiveBpm, 1.0)) : Math.Round(interpolatedBpm.Value);
bpm = effectiveBpm;
bpmText.Text = bpm.ToLocalisableString("0.##"); bpmText.Text = bpm.ToLocalisableString("0.##");
} }