mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 01:37:46 +08:00
Fix incorrect beatmap being parsed down for autoplay generation
This commit is contained in:
parent
240f7facba
commit
3ba0d29108
@ -6,6 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
@ -17,7 +18,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
protected Score Score { get; private set; }
|
protected Score Score { get; private set; }
|
||||||
|
|
||||||
private readonly Func<GameplayBeatmap, IReadOnlyList<Mod>, Score> createScore;
|
private readonly Func<IBeatmap, IReadOnlyList<Mod>, Score> createScore;
|
||||||
|
|
||||||
// Disallow replays from failing. (see https://github.com/ppy/osu/issues/6108)
|
// Disallow replays from failing. (see https://github.com/ppy/osu/issues/6108)
|
||||||
protected override bool CheckModsAllowFailure() => false;
|
protected override bool CheckModsAllowFailure() => false;
|
||||||
@ -27,7 +28,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReplayPlayer(Func<GameplayBeatmap, IReadOnlyList<Mod>, Score> createScore, PlayerConfiguration configuration = null)
|
public ReplayPlayer(Func<IBeatmap, IReadOnlyList<Mod>, Score> createScore, PlayerConfiguration configuration = null)
|
||||||
: base(configuration)
|
: base(configuration)
|
||||||
{
|
{
|
||||||
this.createScore = createScore;
|
this.createScore = createScore;
|
||||||
@ -38,7 +39,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (!LoadedBeatmapSuccessfully) return;
|
if (!LoadedBeatmapSuccessfully) return;
|
||||||
|
|
||||||
Score = createScore(GameplayBeatmap, Mods.Value);
|
Score = createScore(GameplayBeatmap.PlayableBeatmap, Mods.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void PrepareReplay()
|
protected override void PrepareReplay()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user