mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 21:02:54 +08:00
Update WorkingBeatmap.cs
This commit is contained in:
parent
e3b405cc23
commit
749dc40062
@ -110,10 +110,10 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public Track LoadTrack() => track = GetBeatmapTrack() ?? GetVirtualTrack(1000);
|
public Track LoadTrack() => track = GetBeatmapTrack() ?? GetVirtualTrack(1000);
|
||||||
|
|
||||||
public void PrepareTrackForPreview(bool looping)
|
public void PrepareTrackForPreview(bool looping, int priorToPreview = 2000)
|
||||||
{
|
{
|
||||||
Track.Looping = looping;
|
Track.Looping = looping;
|
||||||
Track.RestartPoint = Metadata.PreviewTime;
|
Track.RestartPoint = Metadata.PreviewTime - priorToPreview;
|
||||||
|
|
||||||
if (Track.RestartPoint == -1)
|
if (Track.RestartPoint == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user