mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 10:53:21 +08:00
fm
This commit is contained in:
parent
ac959e998e
commit
a7123bf869
@ -47,7 +47,6 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
List<(double startTime, IList<HitSampleInfo> samples, string type)> locations;
|
List<(double startTime, IList<HitSampleInfo> samples, string type)> locations;
|
||||||
|
|
||||||
if (FullInvert.Value)
|
if (FullInvert.Value)
|
||||||
{
|
|
||||||
locations = column.OfType<Note>().Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note"))
|
locations = column.OfType<Note>().Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note"))
|
||||||
.Concat(column.OfType<HoldNote>().SelectMany(h => new[]
|
.Concat(column.OfType<HoldNote>().SelectMany(h => new[]
|
||||||
{
|
{
|
||||||
@ -55,12 +54,10 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
(startTime: h.EndTime, samples: h.GetNodeSamples(1), type: "note")
|
(startTime: h.EndTime, samples: h.GetNodeSamples(1), type: "note")
|
||||||
}))
|
}))
|
||||||
.OrderBy(h => h.startTime).ToList();
|
.OrderBy(h => h.startTime).ToList();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
locations = column.Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note"))
|
locations = column.Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note"))
|
||||||
.OrderBy(h => h.startTime).ToList();
|
.OrderBy(h => h.startTime).ToList();
|
||||||
}
|
|
||||||
for (int i = 0; i < locations.Count - 1; i++)
|
for (int i = 0; i < locations.Count - 1; i++)
|
||||||
{
|
{
|
||||||
if (locations[i].type == "release")
|
if (locations[i].type == "release")
|
||||||
@ -84,6 +81,7 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
NodeSamples = new List<IList<HitSampleInfo>> { locations[i].samples, Array.Empty<HitSampleInfo>() }
|
NodeSamples = new List<IList<HitSampleInfo>> { locations[i].samples, Array.Empty<HitSampleInfo>() }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
newObjects.AddRange(newColumnObjects);
|
newObjects.AddRange(newColumnObjects);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user