mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 17:43:12 +08:00
Add assert ensuring we don't ever get to the results screen with an F rank
Intentionally an assertion as I want tests to fail, but I don't want this to cause crashes for an end user if it does happen to occur.
This commit is contained in:
parent
a8bb2e33ac
commit
4dd0c2c7a5
@ -788,6 +788,8 @@ namespace osu.Game.Screens.Play
|
|||||||
// This player instance may already be in the process of exiting.
|
// This player instance may already be in the process of exiting.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Debug.Assert(ScoreProcessor.Rank.Value != ScoreRank.F);
|
||||||
|
|
||||||
this.Push(CreateResults(prepareScoreForDisplayTask.GetResultSafely()));
|
this.Push(CreateResults(prepareScoreForDisplayTask.GetResultSafely()));
|
||||||
}, Time.Current + delay, 50);
|
}, Time.Current + delay, 50);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user