Skip to content

Commit

Permalink
Merge pull request #205 from bdach/legacy-score-performance-command-i…
Browse files Browse the repository at this point in the history
…s-doing-things

Fix `performance legacy-score` command doing things it doesn't need to
  • Loading branch information
smoogipoo authored May 27, 2024
2 parents d63c2d3 + 2b16421 commit d74593a
Showing 1 changed file with 0 additions and 5 deletions.
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;
Expand All @@ -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,
Expand Down

0 comments on commit d74593a

Please sign in to comment.