mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:02:59 +08:00
Fix escape not continuing to results screen
This commit is contained in:
parent
5a11fe9a84
commit
8903f286ef
@ -541,8 +541,14 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
if (completionProgressDelegate != null && !completionProgressDelegate.Cancelled && !completionProgressDelegate.Completed)
|
if (completionProgressDelegate != null && !completionProgressDelegate.Cancelled && !completionProgressDelegate.Completed)
|
||||||
{
|
{
|
||||||
// proceed to result screen if beatmap already finished playing
|
// Proceed to result screen if beatmap already finished playing.
|
||||||
completionProgressDelegate.RunTask();
|
// This is scheduled since the player needs to become the current screen before the delegate runs. This happens after the return true.
|
||||||
|
Scheduler.Add(() =>
|
||||||
|
{
|
||||||
|
if (!completionProgressDelegate.Completed && !completionProgressDelegate.Cancelled)
|
||||||
|
completionProgressDelegate.RunTask();
|
||||||
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user