1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

Cleanup ReplayPlayer adjustments

This commit is contained in:
smoogipoo 2020-06-19 21:54:09 +09:00
parent 25abdc2903
commit 49bdd89775
2 changed files with 12 additions and 11 deletions

View File

@ -460,7 +460,7 @@ namespace osu.Game.Screens.Play
{
var score = new ScoreInfo
{
Beatmap = Beatmap.Value.BeatmapInfo,
Beatmap = gameplayBeatmap.BeatmapInfo,
Ruleset = rulesetInfo,
Mods = Mods.Value.ToArray(),
};

View File

@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Screens;
using osu.Game.Scoring;
using osu.Game.Screens.Ranking;
@ -25,16 +24,18 @@ namespace osu.Game.Screens.Play
DrawableRuleset?.SetReplayScore(score);
}
protected override void GotoRanking()
{
this.Push(CreateResults(CreateScore()));
}
protected override ResultsScreen CreateResults(ScoreInfo score) => new SoloResultsScreen(score, false);
// protected override ScoreInfo CreateScore()
// {
// return score.ScoreInfo;
// }
protected override ScoreInfo CreateScore()
{
var baseScore = base.CreateScore();
// Since the replay score doesn't contain statistics, we'll pass them through here.
// We also have to pass in the beatmap to get the post-mod-application version.
score.ScoreInfo.Beatmap = baseScore.Beatmap;
score.ScoreInfo.HitEvents = baseScore.HitEvents;
return score.ScoreInfo;
}
}
}