1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-16 03:02:56 +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:
Dean Herbert 2023-03-29 14:11:56 +09:00
parent a8bb2e33ac
commit 4dd0c2c7a5

View File

@ -788,6 +788,8 @@ namespace osu.Game.Screens.Play
// This player instance may already be in the process of exiting.
return;
Debug.Assert(ScoreProcessor.Rank.Value != ScoreRank.F);
this.Push(CreateResults(prepareScoreForDisplayTask.GetResultSafely()));
}, Time.Current + delay, 50);