1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 04:19:53 +08:00

Replace RemoveFilters call with StopSampleAndRemoveFilters

This commit is contained in:
Matheus Filipe dos Santos Reinert
2023-01-22 01:44:16 -03:00
Unverified
parent 2e1ba6ef49
commit 5b1a23c697
+1 -3
View File
@@ -612,8 +612,6 @@ namespace osu.Game.Screens.Play
// if an exit has been requested, cancel any pending completion (the user has shown intention to exit).
resultsDisplayDelegate?.Cancel();
failAnimationLayer.StopSample();
// The actual exit is performed if
// - the pause / fail dialog was not requested
// - the pause / fail dialog was requested but is already displayed (user showing intention to exit).
@@ -1075,7 +1073,7 @@ namespace osu.Game.Screens.Play
public override bool OnExiting(ScreenExitEvent e)
{
screenSuspension?.RemoveAndDisposeImmediately();
failAnimationLayer?.RemoveFilters();
failAnimationLayer?.StopSampleAndRemoveFilters();
if (LoadedBeatmapSuccessfully)
{