mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Share rounding with PerformanceStatistic
This commit is contained in:
parent
fb63e5ed87
commit
1837e1bf3c
@ -79,7 +79,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
attribIndex = Math.Clamp(attribIndex, 0, timedAttributes.Length - 1);
|
attribIndex = Math.Clamp(attribIndex, 0, timedAttributes.Length - 1);
|
||||||
|
|
||||||
var ppProcessor = gameplayRuleset.CreatePerformanceCalculator(timedAttributes[attribIndex].Attributes, gameplayState.Score.ScoreInfo);
|
var ppProcessor = gameplayRuleset.CreatePerformanceCalculator(timedAttributes[attribIndex].Attributes, gameplayState.Score.ScoreInfo);
|
||||||
Current.Value = (int)(ppProcessor?.Calculate() ?? 0);
|
Current.Value = (int)Math.Round(ppProcessor?.Calculate() ?? 0, MidpointRounding.AwayFromZero);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override LocalisableString FormatCount(int count) => count.ToString(@"D");
|
protected override LocalisableString FormatCount(int count) => count.ToString(@"D");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user