judgementOccurred should be passed upwards

So only one hit object is ever judged in a single frame.
This commit is contained in:
smoogipooo 2017-09-12 18:50:30 +09:00
parent a38e0062a4
commit 92b3e203e8

View File

@ -146,15 +146,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
if (NestedHitObjects != null) if (NestedHitObjects != null)
{ {
foreach (var d in NestedHitObjects) foreach (var d in NestedHitObjects)
{ judgementOccurred |= d.UpdateJudgement(userTriggered);
if (d.AllJudged)
continue;
d.UpdateJudgement(userTriggered);
if (d.AllJudged)
return true;
}
} }
if (!ProvidesJudgement || hasJudgementResult || judgementOccurred) if (!ProvidesJudgement || hasJudgementResult || judgementOccurred)