mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
Fix off-by-one counts.
This commit is contained in:
parent
a47870b376
commit
2d5f0f6b76
@ -53,16 +53,8 @@ namespace osu.Game.Rulesets.Osu.Scoring
|
|||||||
{
|
{
|
||||||
if (judgement.Result != HitResult.None)
|
if (judgement.Result != HitResult.None)
|
||||||
{
|
{
|
||||||
int count;
|
scoreResultCounts[judgement.Score] = scoreResultCounts.GetOrDefault(judgement.Score) + 1;
|
||||||
if (scoreResultCounts.TryGetValue(judgement.Score, out count))
|
comboResultCounts[judgement.Combo] = comboResultCounts.GetOrDefault(judgement.Combo) + 1;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (judgement.Result)
|
switch (judgement.Result)
|
||||||
|
Loading…
Reference in New Issue
Block a user