mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 23:12:56 +08:00
Fix potential quadratic complexity in taiko autoplay
This commit is contained in:
parent
fef78abdb3
commit
c6816a6cf3
@ -88,7 +88,8 @@ namespace osu.Game.Rulesets.Taiko.Scoring
|
|||||||
AddJudgement(new TaikoStrongHitJudgement());
|
AddJudgement(new TaikoStrongHitJudgement());
|
||||||
break;
|
break;
|
||||||
case DrumRoll drumRoll:
|
case DrumRoll drumRoll:
|
||||||
for (int i = 0; i < drumRoll.NestedHitObjects.OfType<DrumRollTick>().Count(); i++)
|
var count = drumRoll.NestedHitObjects.OfType<DrumRollTick>().Count();
|
||||||
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
AddJudgement(new TaikoDrumRollTickJudgement { Result = HitResult.Great });
|
AddJudgement(new TaikoDrumRollTickJudgement { Result = HitResult.Great });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user