mirror of
https://github.com/ppy/osu
synced 2025-01-03 04:42:10 +00:00
Reset track adjustments on resuming from another screen
This commit is contained in:
parent
5405102393
commit
fb9f21237e
@ -57,7 +57,7 @@ namespace osu.Game.Overlays
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
beatmap.BindValueChanged(beatmapChanged, true);
|
||||
mods.BindValueChanged(_ => updateAudioAdjustments(), true);
|
||||
mods.BindValueChanged(_ => ResetTrackAdjustments(), true);
|
||||
base.LoadComplete();
|
||||
}
|
||||
|
||||
@ -213,12 +213,12 @@ namespace osu.Game.Overlays
|
||||
current = beatmap.NewValue;
|
||||
TrackChanged?.Invoke(current, direction);
|
||||
|
||||
updateAudioAdjustments();
|
||||
ResetTrackAdjustments();
|
||||
|
||||
queuedDirection = null;
|
||||
}
|
||||
|
||||
private void updateAudioAdjustments()
|
||||
public void ResetTrackAdjustments()
|
||||
{
|
||||
var track = current?.Track;
|
||||
if (track == null)
|
||||
|
@ -490,6 +490,7 @@ namespace osu.Game.Screens.Select
|
||||
BeatmapDetails.Leaderboard.RefreshScores();
|
||||
|
||||
Beatmap.Value.Track.Looping = true;
|
||||
music?.ResetTrackAdjustments();
|
||||
|
||||
if (Beatmap != null && !Beatmap.Value.BeatmapSetInfo.DeletePending)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user