Share !HasPassed condition

This commit is contained in:
Bartłomiej Dach 2023-10-27 13:27:48 +02:00
parent 3944b045ed
commit 2d5b1711f6
No known key found for this signature in database

View File

@ -1110,12 +1110,12 @@ namespace osu.Game.Screens.Play
failAnimationContainer?.Stop();
PauseOverlay?.StopAllSamples();
if (LoadedBeatmapSuccessfully)
if (LoadedBeatmapSuccessfully && !GameplayState.HasPassed)
{
if (!GameplayState.HasPassed && !GameplayState.HasFailed)
if (!GameplayState.HasFailed)
GameplayState.HasQuit = true;
if (!GameplayState.HasPassed && DrawableRuleset.ReplayScore == null)
if (DrawableRuleset.ReplayScore == null)
ScoreProcessor.FailScore(Score.ScoreInfo);
}