mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:03:21 +08:00
Cleanup ReplayPlayer adjustments
This commit is contained in:
parent
25abdc2903
commit
49bdd89775
@ -460,7 +460,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
var score = new ScoreInfo
|
var score = new ScoreInfo
|
||||||
{
|
{
|
||||||
Beatmap = Beatmap.Value.BeatmapInfo,
|
Beatmap = gameplayBeatmap.BeatmapInfo,
|
||||||
Ruleset = rulesetInfo,
|
Ruleset = rulesetInfo,
|
||||||
Mods = Mods.Value.ToArray(),
|
Mods = Mods.Value.ToArray(),
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using osu.Framework.Screens;
|
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using osu.Game.Screens.Ranking;
|
using osu.Game.Screens.Ranking;
|
||||||
|
|
||||||
@ -25,16 +24,18 @@ namespace osu.Game.Screens.Play
|
|||||||
DrawableRuleset?.SetReplayScore(score);
|
DrawableRuleset?.SetReplayScore(score);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void GotoRanking()
|
|
||||||
{
|
|
||||||
this.Push(CreateResults(CreateScore()));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override ResultsScreen CreateResults(ScoreInfo score) => new SoloResultsScreen(score, false);
|
protected override ResultsScreen CreateResults(ScoreInfo score) => new SoloResultsScreen(score, false);
|
||||||
|
|
||||||
// protected override ScoreInfo CreateScore()
|
protected override ScoreInfo CreateScore()
|
||||||
// {
|
{
|
||||||
// return score.ScoreInfo;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user