mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 07:54:22 +08:00
minor cleanup
This commit is contained in:
parent
25bb6cbf9b
commit
4918b61412
@ -35,6 +35,7 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
{
|
{
|
||||||
var taikoBeatmap = (TaikoBeatmap)beatmap;
|
var taikoBeatmap = (TaikoBeatmap)beatmap;
|
||||||
var controlPointInfo = taikoBeatmap.ControlPointInfo;
|
var controlPointInfo = taikoBeatmap.ControlPointInfo;
|
||||||
|
List<Hit> hits = taikoBeatmap.HitObjects.Where(obj => obj is Hit).Cast<Hit>().ToList();
|
||||||
List<Hit> toRemove = new List<Hit>();
|
List<Hit> toRemove = new List<Hit>();
|
||||||
|
|
||||||
// Snap conversions for rhythms
|
// Snap conversions for rhythms
|
||||||
@ -47,8 +48,6 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
|
|
||||||
bool inPattern = false;
|
bool inPattern = false;
|
||||||
|
|
||||||
List<Hit> hits = taikoBeatmap.HitObjects.Where(obj => obj is Hit).Cast<Hit>().ToList();
|
|
||||||
|
|
||||||
foreach (var snapConversion in snapConversions)
|
foreach (var snapConversion in snapConversions)
|
||||||
{
|
{
|
||||||
int patternStartIndex = 0;
|
int patternStartIndex = 0;
|
||||||
@ -73,10 +72,10 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
inPattern = true;
|
inPattern = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if end of pattern
|
// Check if end of pattern
|
||||||
if (inPattern && snapValue != snapConversion.Key)
|
if (inPattern && snapValue != snapConversion.Key)
|
||||||
{
|
{
|
||||||
// End of the pattern
|
// End pattern
|
||||||
inPattern = false;
|
inPattern = false;
|
||||||
|
|
||||||
// Iterate through the pattern
|
// Iterate through the pattern
|
||||||
|
Loading…
Reference in New Issue
Block a user