1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

Don't attempt to submit zero scores

This commit is contained in:
Dean Herbert 2025-02-07 15:36:59 +09:00
parent 91bc23e39e
commit 4d1167fdcc
No known key found for this signature in database

View File

@ -284,6 +284,13 @@ namespace osu.Game.Screens.Play
return Task.CompletedTask;
}
// zero scores should also never be submitted.
if (score.ScoreInfo.TotalScore == 0)
{
Logger.Log("Zero score, skipping score submission");
return Task.CompletedTask;
}
// mind the timing of this.
// once `scoreSubmissionSource` is created, it is presumed that submission is taking place in the background,
// so all exceptional circumstances that would disallow submission must be handled above.