1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

Fix incorrect accuracy display on overall ranking view

This commit is contained in:
Bartłomiej Dach 2022-12-27 19:51:51 +01:00
parent e2703bba18
commit e90619244d
No known key found for this signature in database

View File

@ -16,11 +16,11 @@ namespace osu.Game.Screens.Ranking.Statistics.User
protected override LocalisableString Label => UsersStrings.ShowStatsHitAccuracy; protected override LocalisableString Label => UsersStrings.ShowStatsHitAccuracy;
protected override LocalisableString FormatCurrentValue(double current) => current.FormatAccuracy(); protected override LocalisableString FormatCurrentValue(double current) => (current / 100).FormatAccuracy();
protected override int CalculateDifference(double previous, double current, out LocalisableString formattedDifference) protected override int CalculateDifference(double previous, double current, out LocalisableString formattedDifference)
{ {
double difference = current - previous; double difference = (current - previous) / 100;
if (difference < 0) if (difference < 0)
formattedDifference = difference.FormatAccuracy(); formattedDifference = difference.FormatAccuracy();