1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 03:31:54 +08:00

Round to integral units

The rounding matches the implementation of `PerformancePointsCounter`.
This commit is contained in:
Dan Balasescu
2024-11-01 22:40:00 +09:00
Unverified
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;