mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 01:22:54 +08:00
Fix TestCasePlayer regression.
This commit is contained in:
parent
aef0eb49a1
commit
d19a7813f3
@ -38,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
base.Reset();
|
base.Reset();
|
||||||
|
|
||||||
if (beatmap?.Track == null)
|
//if (beatmap?.Track == null)
|
||||||
{
|
{
|
||||||
var objects = new List<HitObject>();
|
var objects = new List<HitObject>();
|
||||||
|
|
||||||
@ -60,7 +60,16 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
Beatmap b = new Beatmap
|
Beatmap b = new Beatmap
|
||||||
{
|
{
|
||||||
HitObjects = objects
|
HitObjects = objects,
|
||||||
|
BeatmapInfo = new BeatmapInfo
|
||||||
|
{
|
||||||
|
Metadata = new BeatmapMetadata
|
||||||
|
{
|
||||||
|
Artist = @"Unknown",
|
||||||
|
Title = @"Sample Beatmap",
|
||||||
|
Author = @"peppy",
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
decoder.Process(b);
|
decoder.Process(b);
|
||||||
|
@ -113,6 +113,8 @@ namespace osu.Game.Beatmaps
|
|||||||
public WorkingBeatmap(Beatmap beatmap)
|
public WorkingBeatmap(Beatmap beatmap)
|
||||||
{
|
{
|
||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
|
BeatmapInfo = beatmap.BeatmapInfo;
|
||||||
|
BeatmapSetInfo = beatmap.BeatmapInfo.BeatmapSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database, bool withStoryboard = false)
|
public WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, BeatmapDatabase database, bool withStoryboard = false)
|
||||||
|
Loading…
Reference in New Issue
Block a user