mirror of https://github.com/ppy/osu
Check count as well (statistics can be populated with zero counts)
This commit is contained in:
parent
ef82528309
commit
7a710ceffe
|
@ -146,7 +146,7 @@ private Task submitScore(Score score)
|
|||
return scoreSubmissionSource.Task;
|
||||
|
||||
// if the user never hit anything, this score should not be counted in any way.
|
||||
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit()))
|
||||
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit() && s.Value > 0))
|
||||
return Task.CompletedTask;
|
||||
|
||||
scoreSubmissionSource = new TaskCompletionSource<bool>();
|
||||
|
|
Loading…
Reference in New Issue