mirror of
https://github.com/ppy/osu.git
synced 2025-03-21 22:27:23 +08:00
Merge pull request #1099 from swoolcock/fix-track-not-resetting
Fixes an issue where a beatmap would not reset after playing it
This commit is contained in:
commit
49422a61d7
@ -370,6 +370,9 @@ 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