Update fail logic to match

This commit is contained in:
Dean Herbert 2019-10-04 11:23:42 +08:00
parent a7d7a28d34
commit 71985c7ef1
1 changed files with 6 additions and 6 deletions

View File

@ -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();