Move Passed assignment inside FailScore

This commit is contained in:
Salman Ahmed
2022-07-21 08:12:06 +03:00
parent c1bcbd9c8a
commit ad09e728fd
2 changed files with 2 additions and 4 deletions

View File

@ -851,7 +851,6 @@ namespace osu.Game.Screens.Play
// fail completion is a good point to mark a score as failed,
// since the last judgement that caused the fail only applies to score processor after onFail.
// todo: this should probably be handled better.
Score.ScoreInfo.Passed = false;
ScoreProcessor.FailScore(Score.ScoreInfo);
GameplayClockContainer.Stop();
@ -1030,10 +1029,7 @@ 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 (prepareScoreForDisplayTask == null)
{
Score.ScoreInfo.Passed = false;
ScoreProcessor.FailScore(Score.ScoreInfo);
}
// EndPlaying() is typically called from ReplayRecorder.Dispose(). Disposal is currently asynchronous.
// To resolve test failures, forcefully end playing synchronously when this screen exits.