mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 20:02:58 +08:00
Merge branch 'master' into direct-previews
This commit is contained in:
commit
fffeac638f
@ -55,14 +55,17 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
|
|||||||
|
|
||||||
Beatmap<TaikoHitObject> converted = base.ConvertBeatmap(original);
|
Beatmap<TaikoHitObject> converted = base.ConvertBeatmap(original);
|
||||||
|
|
||||||
// Post processing step to transform hit objects with the same start time into strong hits
|
if (original.BeatmapInfo.RulesetID == 3)
|
||||||
converted.HitObjects = converted.HitObjects.GroupBy(t => t.StartTime).Select(x =>
|
|
||||||
{
|
{
|
||||||
TaikoHitObject first = x.First();
|
// Post processing step to transform mania hit objects with the same start time into strong hits
|
||||||
if (x.Skip(1).Any())
|
converted.HitObjects = converted.HitObjects.GroupBy(t => t.StartTime).Select(x =>
|
||||||
first.IsStrong = true;
|
{
|
||||||
return first;
|
TaikoHitObject first = x.First();
|
||||||
}).ToList();
|
if (x.Skip(1).Any())
|
||||||
|
first.IsStrong = true;
|
||||||
|
return first;
|
||||||
|
}).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
return converted;
|
return converted;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user