-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from bdach/legacy-score-performance-command-i…
…s-doing-things Fix `performance legacy-score` command doing things it doesn't need to
- Loading branch information
Showing
1 changed file
with
0 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System.Linq; | ||
using McMaster.Extensions.CommandLineUtils; | ||
using osu.Game.Beatmaps; | ||
using osu.Game.Database; | ||
using osu.Game.Online.API.Requests.Responses; | ||
using osu.Game.Rulesets; | ||
using osu.Game.Rulesets.Mods; | ||
using osu.Game.Rulesets.Scoring.Legacy; | ||
using osu.Game.Scoring; | ||
using osu.Game.Scoring.Legacy; | ||
|
@@ -26,9 +24,6 @@ protected override ScoreInfo CreateScore(SoloScoreInfo apiScore, Ruleset ruleset | |
{ | ||
var score = base.CreateScore(apiScore, ruleset, apiBeatmap, workingBeatmap); | ||
|
||
score.Mods = score.Mods.Append(ruleset.CreateMod<ModClassic>()).ToArray(); | ||
score.IsLegacyScore = true; | ||
score.LegacyTotalScore = (int)score.TotalScore; | ||
LegacyScoreDecoder.PopulateMaximumStatistics(score, workingBeatmap); | ||
StandardisedScoreMigrationTools.UpdateFromLegacy( | ||
score, | ||
|