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:
parent
ffc8f763e5
commit
4901ac9e35
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user