1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +08:00

Rename CalculateScorePerformance -> CalculatePerformance

This commit is contained in:
Lucas A 2020-09-25 19:16:33 +02:00
parent 77a9d92f42
commit 4d94bf3163
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ namespace osu.Game.Beatmaps
/// <param name="score">The score to do the calculation on. </param>
/// <param name="token">An optional <see cref="CancellationToken"/> to cancel the operation.</param>
/// <returns></returns>
public async Task<double> CalculateScorePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
public async Task<double> CalculatePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
{
return await Task.Factory.StartNew(() =>
{

View File

@ -41,7 +41,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Statistics
else
{
var beatmap = beatmapManager.GetWorkingBeatmap(score.Beatmap);
difficultyManager.CalculateScorePerformance(beatmap, score, cancellationTokenSource.Token)
difficultyManager.CalculatePerformance(beatmap, score, cancellationTokenSource.Token)
.ContinueWith(t => Schedule(() => performance.Value = (int)t.Result), cancellationTokenSource.Token);
}
}