Centralise TrackManager.AddItem logic to avoid duplicate adds

This commit is contained in:
Dean Herbert
2017-07-20 17:46:23 +09:00
parent 67b95926c4
commit 3bdd4d7d02
5 changed files with 17 additions and 28 deletions

View File

@ -119,10 +119,7 @@ namespace osu.Game.Screens.Play
Track track = Beatmap.Value.Track;
if (track != null)
{
audio.Track.AddItem(track);
adjustableSourceClock = track;
}
adjustableSourceClock = (IAdjustableClock)track ?? new StopwatchClock();