mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:03:22 +08:00
Also check for AffectsCombo to avoid too many passing switches
This commit is contained in:
parent
9b8589583c
commit
1a31e1f10f
@ -35,8 +35,12 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
|
|
||||||
LastResult.BindValueChanged(result =>
|
LastResult.BindValueChanged(result =>
|
||||||
{
|
{
|
||||||
|
var r = result.NewValue;
|
||||||
|
|
||||||
|
bool passing = r == null || (r.Judgement.AffectsCombo && r.Type > HitResult.Miss);
|
||||||
|
|
||||||
foreach (var sprite in InternalChildren.OfType<ScrollerSprite>())
|
foreach (var sprite in InternalChildren.OfType<ScrollerSprite>())
|
||||||
sprite.Passing = result.NewValue == null || result.NewValue.Type > HitResult.Miss;
|
sprite.Passing = passing;
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user