mirror of
https://github.com/ppy/osu.git
synced 2025-01-23 16:52:57 +08:00
Round to integral units
The rounding matches the implementation of `PerformancePointsCounter`.
This commit is contained in:
parent
3dc2408965
commit
ef22b6b1a8
@ -229,7 +229,7 @@ namespace osu.Game.Skinning.Components
|
||||
return (starDifficulty?.Stars ?? 0).ToLocalisableString(@"F2");
|
||||
|
||||
case BeatmapAttribute.MaxPP:
|
||||
return (starDifficulty?.PerformanceAttributes?.Total ?? 0).ToLocalisableString(@"F2");
|
||||
return Math.Round(starDifficulty?.PerformanceAttributes?.Total ?? 0, MidpointRounding.AwayFromZero).ToLocalisableString();
|
||||
|
||||
default:
|
||||
return string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user