1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +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
parent 2e1ba6ef49
commit 5b1a23c697

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)
{