1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 08:27:23 +08:00

Add some comments explaining why the Track is being forcefully added to the TrackManager

This commit is contained in:
Shane Woolcock 2017-08-18 18:01:18 +09:30
parent ffc8f763e5
commit 4901ac9e35

View File

@ -370,6 +370,8 @@ namespace osu.Game.Screens.Select
if (!track.IsRunning)
{
// 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();