1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:35:35 +08:00

Create ReplayPlayer using Score from the dummy RulesetContainer

This commit is contained in:
Roman Kapustin 2018-12-09 17:39:35 +03:00
parent c6c255718b
commit 2d0fdc8204

View File

@ -5,7 +5,6 @@ using System.ComponentModel;
using System.Linq;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Scoring;
using osu.Game.Screens.Play;
namespace osu.Game.Tests.Visual
@ -23,7 +22,7 @@ namespace osu.Game.Tests.Visual
// Reset the mods
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);
}
}
}