1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

The endtime-object pattern is never checked against

This commit is contained in:
smoogipoo 2018-03-05 20:16:11 +09:00
parent 4be478d38e
commit 27a510aad8

View File

@ -152,10 +152,9 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
return null;
Pattern newPattern = conversion.Generate();
lastPattern = newPattern;
var stairPatternGenerator = conversion as HitObjectPatternGenerator;
lastStair = stairPatternGenerator?.StairType ?? lastStair;
lastPattern = conversion is EndTimeObjectPatternGenerator ? lastPattern : newPattern;
lastStair = (conversion as HitObjectPatternGenerator)?.StairType ?? lastStair;
return newPattern.HitObjects;
}