Fix results screen pushed after rewinding in-between push delay

This commit is contained in:
Salman Ahmed 2020-04-19 05:59:56 +03:00
parent 7e64bec94f
commit 6d276890a7

View File

@ -418,6 +418,16 @@ namespace osu.Game.Screens.Play
if (!this.IsCurrentScreen())
return;
// cancel push delegate in case judges reverted
// after delegate may have already been scheduled.
if (!completionState.NewValue)
{
completionProgressDelegate?.Cancel();
completionProgressDelegate = null;
ValidForResume = true;
return;
}
// Only show the completion screen if the player hasn't failed
if (HealthProcessor.HasFailed || completionProgressDelegate != null)
return;