mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Merge branch 'master' into remove-net471-target
This commit is contained in:
commit
bd3e5f7e1b
@ -278,6 +278,8 @@ namespace osu.Game.Screens.Play
|
|||||||
ScoreProcessor.PopulateScore(score);
|
ScoreProcessor.PopulateScore(score);
|
||||||
score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value;
|
score.User = RulesetContainer.Replay?.User ?? api.LocalUser.Value;
|
||||||
Push(new Results(score));
|
Push(new Results(score));
|
||||||
|
|
||||||
|
onCompletionEvent = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -340,6 +342,13 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
|
if (onCompletionEvent != null)
|
||||||
|
{
|
||||||
|
// Proceed to result screen if beatmap already finished playing
|
||||||
|
onCompletionEvent.RunTask();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if ((!AllowPause || HasFailed || !ValidForResume || pauseContainer?.IsPaused != false || RulesetContainer?.HasReplayLoaded != false) && (!pauseContainer?.IsResuming ?? true))
|
if ((!AllowPause || HasFailed || !ValidForResume || pauseContainer?.IsPaused != false || RulesetContainer?.HasReplayLoaded != false) && (!pauseContainer?.IsResuming ?? true))
|
||||||
{
|
{
|
||||||
// In the case of replays, we may have changed the playback rate.
|
// In the case of replays, we may have changed the playback rate.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user