1
0
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:
Bartłomiej Dach 2023-01-22 09:24:12 +01:00
parent db0b69db6b
commit 0edfd24410
No known key found for this signature in database

View File

@ -678,7 +678,6 @@ namespace osu.Game.Screens.Play
sampleRestart?.Play();
RestartRequested?.Invoke(quickRestart);
failAnimationLayer.StopSample();
PerformExit(false);
}