1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:07:23 +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++;
// Apply combo changes, must be done before the hit score is added
if (!isTick && judgement.Result == HitResult.Hit)
Combo.Value++;
if (!isTick)
{
switch (judgement.Result)
{
case HitResult.Miss:
Combo.Value = 0;
break;
case HitResult.Hit:
Combo.Value++;
break;
}
}
// Apply score changes
addHitScore(judgement);