mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Move CheckFailed outside of Schedule().
This commit is contained in:
@ -239,18 +239,18 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private void onCompletion()
|
private void onCompletion()
|
||||||
{
|
{
|
||||||
|
// Force a final check to see if the player has failed
|
||||||
|
// Some game modes (e.g. taiko) fail at the end of the map
|
||||||
|
if (scoreProcessor.CheckFailed())
|
||||||
|
{
|
||||||
|
// If failed, onFail will be invoked which will push a new screen.
|
||||||
|
// Let's not push the completion screen in this case
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Delay(1000);
|
Delay(1000);
|
||||||
Schedule(delegate
|
Schedule(delegate
|
||||||
{
|
{
|
||||||
// Force a final check to see if the player has failed
|
|
||||||
// Some game modes (e.g. taiko) fail at the end of the map
|
|
||||||
if (scoreProcessor.CheckFailed())
|
|
||||||
{
|
|
||||||
// If failed, onFail will be called which will push a new screen.
|
|
||||||
// Let's not push the completion screen in this case
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ValidForResume = false;
|
ValidForResume = false;
|
||||||
Push(new Results
|
Push(new Results
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user