mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Also handle most common BPM display
This commit is contained in:
parent
31c52bd585
commit
2db4b793d7
@ -395,11 +395,12 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
double bpmMax = beatmap.ControlPointInfo.BPMMaximum * rate;
|
||||
double bpmMin = beatmap.ControlPointInfo.BPMMinimum * rate;
|
||||
double mostCommonBPM = 60000 / beatmap.GetMostCommonBeatLength() * rate;
|
||||
|
||||
if (Precision.AlmostEquals(bpmMin, bpmMax))
|
||||
return $"{bpmMin:0}";
|
||||
|
||||
return $"{bpmMin:0}-{bpmMax:0} (mostly {60000 / beatmap.GetMostCommonBeatLength():0})";
|
||||
return $"{bpmMin:0}-{bpmMax:0} (mostly {mostCommonBPM:0})";
|
||||
}
|
||||
|
||||
private OsuSpriteText[] getMapper(BeatmapMetadata metadata)
|
||||
|
Loading…
Reference in New Issue
Block a user