mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08: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();
|
||||
RestartRequested?.Invoke(quickRestart);
|
||||
failAnimationLayer.StopSample();
|
||||
|
||||
PerformExit(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user