diff --git a/osu.Game.Rulesets.Taiko/Mods/TaikoModQuarterize.cs b/osu.Game.Rulesets.Taiko/Mods/TaikoModQuarterize.cs index af319b1d41..a3ef7125f6 100644 --- a/osu.Game.Rulesets.Taiko/Mods/TaikoModQuarterize.cs +++ b/osu.Game.Rulesets.Taiko/Mods/TaikoModQuarterize.cs @@ -35,6 +35,7 @@ namespace osu.Game.Rulesets.Taiko.Mods { var taikoBeatmap = (TaikoBeatmap)beatmap; var controlPointInfo = taikoBeatmap.ControlPointInfo; + List hits = taikoBeatmap.HitObjects.Where(obj => obj is Hit).Cast().ToList(); List toRemove = new List(); // Snap conversions for rhythms @@ -47,8 +48,6 @@ namespace osu.Game.Rulesets.Taiko.Mods bool inPattern = false; - List hits = taikoBeatmap.HitObjects.Where(obj => obj is Hit).Cast().ToList(); - foreach (var snapConversion in snapConversions) { int patternStartIndex = 0; @@ -73,10 +72,10 @@ namespace osu.Game.Rulesets.Taiko.Mods inPattern = true; } - // check if end of pattern + // Check if end of pattern if (inPattern && snapValue != snapConversion.Key) { - // End of the pattern + // End pattern inPattern = false; // Iterate through the pattern