mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 09:12:54 +08:00
Only change track when audio doesn't equal
This commit is contained in:
parent
f058f5e977
commit
0edd509397
@ -320,6 +320,18 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
current = beatmap.NewValue;
|
current = beatmap.NewValue;
|
||||||
|
|
||||||
|
if (!beatmap.OldValue.BeatmapInfo.AudioEquals(current?.BeatmapInfo))
|
||||||
|
changeTrack();
|
||||||
|
|
||||||
|
TrackChanged?.Invoke(current, direction);
|
||||||
|
|
||||||
|
ResetTrackAdjustments();
|
||||||
|
|
||||||
|
queuedDirection = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void changeTrack()
|
||||||
|
{
|
||||||
CurrentTrack?.Expire();
|
CurrentTrack?.Expire();
|
||||||
CurrentTrack = null;
|
CurrentTrack = null;
|
||||||
|
|
||||||
@ -328,12 +340,6 @@ namespace osu.Game.Overlays
|
|||||||
trackContainer.Add(CurrentTrack = new DrawableTrack(current.GetRealTrack()));
|
trackContainer.Add(CurrentTrack = new DrawableTrack(current.GetRealTrack()));
|
||||||
CurrentTrack.Completed += () => onTrackCompleted(current);
|
CurrentTrack.Completed += () => onTrackCompleted(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackChanged?.Invoke(current, direction);
|
|
||||||
|
|
||||||
ResetTrackAdjustments();
|
|
||||||
|
|
||||||
queuedDirection = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onTrackCompleted(WorkingBeatmap workingBeatmap)
|
private void onTrackCompleted(WorkingBeatmap workingBeatmap)
|
||||||
|
Loading…
Reference in New Issue
Block a user