1
0
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:
Dan Balasescu 2024-11-01 22:40:00 +09:00
parent 3dc2408965
commit ef22b6b1a8
No known key found for this signature in database

View File

@ -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;