mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 01:43:01 +08:00
Check count as well (statistics can be populated with zero counts)
This commit is contained in:
parent
ef82528309
commit
7a710ceffe
@ -146,7 +146,7 @@ namespace osu.Game.Screens.Play
|
|||||||
return scoreSubmissionSource.Task;
|
return scoreSubmissionSource.Task;
|
||||||
|
|
||||||
// if the user never hit anything, this score should not be counted in any way.
|
// 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;
|
return Task.CompletedTask;
|
||||||
|
|
||||||
scoreSubmissionSource = new TaskCompletionSource<bool>();
|
scoreSubmissionSource = new TaskCompletionSource<bool>();
|
||||||
|
Loading…
Reference in New Issue
Block a user