correctly loop from preview point in SongSelect

This commit is contained in:
Unknown
2019-01-26 07:08:55 +01:00
parent 718136a892
commit 3d5520d277
2 changed files with 4 additions and 3 deletions

View File

@ -584,8 +584,9 @@ namespace osu.Game.Screens.Select
// Ensure the track is added to the TrackManager, since it is removed after the player finishes the map.
// Using AddItemToList rather than AddItem so that it doesn't attempt to register adjustment dependencies more than once.
Game.Audio.Track.AddItemToList(track);
if (preview) track.Seek(Beatmap.Value.Metadata.PreviewTime);
track.Start();
if (preview)
track.RestartPoint = Beatmap.Value.Metadata.PreviewTime;
track.Restart();
}
}