1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 22:33:05 +08:00

Fix incorrect first object logic

This commit is contained in:
Dean Herbert 2020-10-09 06:41:53 +09:00
parent 2d0275ba95
commit 6649cb2204

View File

@ -39,11 +39,13 @@ namespace osu.Game.Rulesets.Mods
{ {
if (IncreaseFirstObjectVisibility.Value) if (IncreaseFirstObjectVisibility.Value)
{ {
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h));
var firstObject = drawables.FirstOrDefault(); var firstObject = drawables.FirstOrDefault();
if (firstObject != null) if (firstObject != null)
firstObject.ApplyCustomUpdateState += ApplyFirstObjectIncreaseVisibilityState; firstObject.ApplyCustomUpdateState += ApplyFirstObjectIncreaseVisibilityState;
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h)).Skip(1); drawables = drawables.Skip(1);
} }
foreach (var dho in drawables) foreach (var dho in drawables)