1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 22:22:54 +08:00

Ensure Player does not fail a score on exit if a replay is currently loaded

This commit is contained in:
Dean Herbert 2023-03-16 17:14:20 +09:00
parent a81408ca06
commit 3b62f87b64

View File

@ -1111,7 +1111,7 @@ namespace osu.Game.Screens.Play
GameplayState.HasQuit = true;
// 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 && DrawableRuleset.ReplayScore == null)
ScoreProcessor.FailScore(Score.ScoreInfo);
}