mirror of https://github.com/ppy/osu
Update fail logic to match
This commit is contained in:
parent
a7d7a28d34
commit
71985c7ef1
|
@ -299,6 +299,12 @@ private void performUserRequestedExit()
|
|||
{
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
|
||||
if (HasFailed && !FailOverlay.IsPresent)
|
||||
{
|
||||
failAnimation.FinishTransforms(true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (canPause)
|
||||
Pause();
|
||||
else
|
||||
|
@ -517,12 +523,6 @@ public override bool OnExiting(IScreen next)
|
|||
if (pauseCooldownActive && !GameplayClockContainer.IsPaused.Value)
|
||||
// still want to block if we are within the cooldown period and not already paused.
|
||||
return true;
|
||||
|
||||
if (HasFailed && !FailOverlay.IsPresent)
|
||||
{
|
||||
failAnimation.FinishTransforms(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
GameplayClockContainer.ResetLocalAdjustments();
|
||||
|
|
Loading…
Reference in New Issue