mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Merge pull request #13926 from peppy/set-rank-on-failed-submission
Set score's rank on a failed submission
This commit is contained in:
commit
f1f6af88a1
@ -953,7 +953,11 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
// if arriving here and the results screen preparation task hasn't run, it's safe to say the user has not completed the beatmap.
|
// if arriving here and the results screen preparation task hasn't run, it's safe to say the user has not completed the beatmap.
|
||||||
if (prepareScoreForDisplayTask == null)
|
if (prepareScoreForDisplayTask == null)
|
||||||
|
{
|
||||||
Score.ScoreInfo.Passed = false;
|
Score.ScoreInfo.Passed = false;
|
||||||
|
// potentially should be ScoreRank.F instead? this is the best alternative for now.
|
||||||
|
Score.ScoreInfo.Rank = ScoreRank.D;
|
||||||
|
}
|
||||||
|
|
||||||
// EndPlaying() is typically called from ReplayRecorder.Dispose(). Disposal is currently asynchronous.
|
// EndPlaying() is typically called from ReplayRecorder.Dispose(). Disposal is currently asynchronous.
|
||||||
// To resolve test failures, forcefully end playing synchronously when this screen exits.
|
// To resolve test failures, forcefully end playing synchronously when this screen exits.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user