1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Rename parameter to read better

This commit is contained in:
Dean Herbert 2022-10-12 14:46:35 +09:00
parent d18466d740
commit 721bfb5369
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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)
{