Fix off-by-one counts.

This commit is contained in:
Dean Herbert 2017-04-20 11:23:40 +09:00
parent a47870b376
commit 2d5f0f6b76
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
1 changed files with 2 additions and 10 deletions

View File

@ -53,16 +53,8 @@ protected override void OnNewJudgement(OsuJudgement judgement)
{
if (judgement.Result != HitResult.None)
{
int count;
if (scoreResultCounts.TryGetValue(judgement.Score, out count))
scoreResultCounts[judgement.Score] = count + 1;
else
scoreResultCounts[judgement.Score] = 0;
if (comboResultCounts.TryGetValue(judgement.Combo, out count))
comboResultCounts[judgement.Combo] = count + 1;
else
comboResultCounts[judgement.Combo] = 0;
scoreResultCounts[judgement.Score] = scoreResultCounts.GetOrDefault(judgement.Score) + 1;
comboResultCounts[judgement.Combo] = comboResultCounts.GetOrDefault(judgement.Combo) + 1;
}
switch (judgement.Result)