From 9182eab48651f4ec41eeb8dc214f4bb11858e782 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 17 Nov 2021 20:45:48 +0900 Subject: [PATCH] Rename method + xmldoc --- osu.Game/Scoring/Legacy/LegacyScoreDecoder.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/osu.Game/Scoring/Legacy/LegacyScoreDecoder.cs b/osu.Game/Scoring/Legacy/LegacyScoreDecoder.cs index 100ef121a8..7ac4f90c07 100644 --- a/osu.Game/Scoring/Legacy/LegacyScoreDecoder.cs +++ b/osu.Game/Scoring/Legacy/LegacyScoreDecoder.cs @@ -115,7 +115,7 @@ public Score Parse(Stream stream) } } - CalculateAccuracy(score.ScoreInfo); + PopulateAccuracy(score.ScoreInfo); // before returning for database import, we must restore the database-sourced BeatmapInfo. // if not, the clone operation in GetPlayableBeatmap will cause a dereference and subsequent database exception. @@ -124,7 +124,14 @@ public Score Parse(Stream stream) return score; } - public static void CalculateAccuracy(ScoreInfo score) + /// + /// Populates the accuracy of a given from its contained statistics. + /// + /// + /// Legacy use only. + /// + /// The to populate. + public static void PopulateAccuracy(ScoreInfo score) { int countMiss = score.GetCountMiss() ?? 0; int count50 = score.GetCount50() ?? 0;