Skip to content

Commit

Permalink
Merge pull request #30970 from peppy/results-screen-quick-retry-trans…
Browse files Browse the repository at this point in the history
…ition

Fix quick retry transition from results screen
  • Loading branch information
frenzibyte authored Dec 4, 2024
2 parents e555131 + a7586c5 commit aa0ee5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osu.Game/Screens/Ranking/ResultsScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public abstract partial class ResultsScreen : ScreenWithBeatmapBackground, IKeyB
[Resolved]
private Player? player { get; set; }

private bool skipExitTransition;

[Resolved]
private IAPIProvider api { get; set; } = null!;

Expand Down Expand Up @@ -203,6 +205,7 @@ private void load(AudioManager audio)
{
if (!this.IsCurrentScreen()) return;

skipExitTransition = true;
player?.Restart(true);
},
});
Expand Down Expand Up @@ -313,7 +316,8 @@ public override bool OnExiting(ScreenExitEvent e)
// HitObject references from HitEvent.
Score?.HitEvents.Clear();

this.FadeOut(100);
if (!skipExitTransition)
this.FadeOut(100);
return false;
}

Expand Down

0 comments on commit aa0ee5c

Please sign in to comment.