1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 13:44:26 +08:00

Refactor slightly

This commit is contained in:
Dan Balasescu
2025-06-06 18:43:59 +09:00
Unverified
parent bef07c4b73
commit 03c3cce761
@@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
var taikoBeatmap = (TaikoBeatmap)beatmap;
var controlPointInfo = taikoBeatmap.ControlPointInfo;
Hit[] hits = taikoBeatmap.HitObjects.Where(obj => obj is Hit).Cast<Hit>().ToArray();
Hit[] hits = taikoBeatmap.HitObjects.OfType<Hit>().ToArray();
if (hits.Length == 0)
return;
@@ -61,10 +61,10 @@ namespace osu.Game.Rulesets.Taiko.Mods
if (inPattern)
{
// pattern continues
if (snapValue == baseRhythm) continue;
if (snapValue == baseRhythm)
continue;
inPattern = false;
processPattern(i);
}
else