1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 05:07:28 +08:00

Fix combo calculations.

This commit is contained in:
smoogipooo 2017-04-06 13:46:26 +09:00
parent d87a65f19e
commit 98630dd06c

View File

@ -188,8 +188,18 @@ namespace osu.Game.Modes.Taiko.Scoring
totalHits++; totalHits++;
// Apply combo changes, must be done before the hit score is added // Apply combo changes, must be done before the hit score is added
if (!isTick && judgement.Result == HitResult.Hit) if (!isTick)
Combo.Value++; {
switch (judgement.Result)
{
case HitResult.Miss:
Combo.Value = 0;
break;
case HitResult.Hit:
Combo.Value++;
break;
}
}
// Apply score changes // Apply score changes
addHitScore(judgement); addHitScore(judgement);