mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 12:13:00 +08:00
Revert "Move break cloning back to non-virtual method"
This reverts commit f69bc40a4b
.
This commit is contained in:
parent
f69bc40a4b
commit
db84711214
@ -49,8 +49,6 @@ namespace osu.Game.Beatmaps
|
|||||||
// Can potentially be removed after `Beatmap.Difficulty` doesn't save back to `Beatmap.BeatmapInfo`.
|
// Can potentially be removed after `Beatmap.Difficulty` doesn't save back to `Beatmap.BeatmapInfo`.
|
||||||
original.BeatmapInfo = original.BeatmapInfo.Clone();
|
original.BeatmapInfo = original.BeatmapInfo.Clone();
|
||||||
original.ControlPointInfo = original.ControlPointInfo.DeepClone();
|
original.ControlPointInfo = original.ControlPointInfo.DeepClone();
|
||||||
// Used in osu!mania conversion.
|
|
||||||
original.Breaks = new List<BreakPeriod>(original.Breaks);
|
|
||||||
|
|
||||||
return ConvertBeatmap(original, cancellationToken);
|
return ConvertBeatmap(original, cancellationToken);
|
||||||
}
|
}
|
||||||
@ -68,6 +66,8 @@ namespace osu.Game.Beatmaps
|
|||||||
beatmap.BeatmapInfo = original.BeatmapInfo;
|
beatmap.BeatmapInfo = original.BeatmapInfo;
|
||||||
beatmap.ControlPointInfo = original.ControlPointInfo;
|
beatmap.ControlPointInfo = original.ControlPointInfo;
|
||||||
beatmap.HitObjects = convertHitObjects(original.HitObjects, original, cancellationToken).OrderBy(s => s.StartTime).ToList();
|
beatmap.HitObjects = convertHitObjects(original.HitObjects, original, cancellationToken).OrderBy(s => s.StartTime).ToList();
|
||||||
|
// Used in osu!mania conversion.
|
||||||
|
beatmap.Breaks = new List<BreakPeriod>(original.Breaks);
|
||||||
beatmap.UnhandledEventLines = original.UnhandledEventLines;
|
beatmap.UnhandledEventLines = original.UnhandledEventLines;
|
||||||
|
|
||||||
return beatmap;
|
return beatmap;
|
||||||
|
Loading…
Reference in New Issue
Block a user