mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Rename parameter to read better
This commit is contained in:
parent
d18466d740
commit
721bfb5369
@ -134,6 +134,6 @@ namespace osu.Game.Beatmaps
|
||||
/// <summary>
|
||||
/// Reads the correct track restart point from beatmap metadata and sets looping to enabled.
|
||||
/// </summary>
|
||||
void PrepareTrackForPreview(bool looping, int priorToPreview = 0);
|
||||
void PrepareTrackForPreview(bool looping, double offsetFromPreviewPoint = 0);
|
||||
}
|
||||
}
|
||||
|
@ -110,10 +110,10 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public Track LoadTrack() => track = GetBeatmapTrack() ?? GetVirtualTrack(1000);
|
||||
|
||||
public void PrepareTrackForPreview(bool looping, int priorToPreview = 0)
|
||||
public void PrepareTrackForPreview(bool looping, double offsetFromPreviewPoint = 0)
|
||||
{
|
||||
Track.Looping = looping;
|
||||
Track.RestartPoint = Metadata.PreviewTime - priorToPreview;
|
||||
Track.RestartPoint = Metadata.PreviewTime - offsetFromPreviewPoint;
|
||||
|
||||
if (Track.RestartPoint == -1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user