1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:22:56 +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; return null;
Pattern newPattern = conversion.Generate(); Pattern newPattern = conversion.Generate();
lastPattern = newPattern;
var stairPatternGenerator = conversion as HitObjectPatternGenerator; lastPattern = conversion is EndTimeObjectPatternGenerator ? lastPattern : newPattern;
lastStair = stairPatternGenerator?.StairType ?? lastStair; lastStair = (conversion as HitObjectPatternGenerator)?.StairType ?? lastStair;
return newPattern.HitObjects; return newPattern.HitObjects;
} }