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:
parent
91bc23e39e
commit
4d1167fdcc
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user