mirror of
https://github.com/ppy/osu
synced 2025-02-27 16:11:43 +00:00
Remove unnecessary sample stop in Restart()
It is unnecessary, as a successful restart will exit the current player screen, and `OnExiting()` has another `StopSampleAndRemoveFilters()` call, which means that in the restart flow the sample was actually getting stopped twice. Standard exit flow is fine, it only stopped the sample once.
This commit is contained in:
parent
db0b69db6b
commit
0edfd24410
@ -678,7 +678,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
sampleRestart?.Play();
|
sampleRestart?.Play();
|
||||||
RestartRequested?.Invoke(quickRestart);
|
RestartRequested?.Invoke(quickRestart);
|
||||||
failAnimationLayer.StopSample();
|
|
||||||
|
|
||||||
PerformExit(false);
|
PerformExit(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user