mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 07:02:54 +08:00
Create ReplayPlayer using Score from the dummy RulesetContainer
This commit is contained in:
parent
c6c255718b
commit
2d0fdc8204
@ -5,7 +5,6 @@ using System.ComponentModel;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Game.Rulesets;
|
using osu.Game.Rulesets;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Scoring;
|
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual
|
namespace osu.Game.Tests.Visual
|
||||||
@ -23,7 +22,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
// Reset the mods
|
// Reset the mods
|
||||||
Beatmap.Value.Mods.Value = Beatmap.Value.Mods.Value.Where(m => !(m is ModAutoplay));
|
Beatmap.Value.Mods.Value = Beatmap.Value.Mods.Value.Where(m => !(m is ModAutoplay));
|
||||||
|
|
||||||
return new ReplayPlayer(new Score { Replay = dummyRulesetContainer.ReplayScore.Replay });
|
return new ReplayPlayer(dummyRulesetContainer.ReplayScore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user