1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 12:45:09 +08:00

Fix incorrect alpha application to lines on rewinding

This commit is contained in:
Dean Herbert 2020-05-22 12:45:37 +09:00
parent d529a2aefa
commit ce35d09e7d
2 changed files with 7 additions and 3 deletions

View File

@ -199,10 +199,14 @@ namespace osu.Game.Rulesets.Mania.Edit
: Anchor.BottomLeft;
}
protected override void UpdateInitialTransforms()
{
// don't perform any fading we are handling that ourselves.
}
protected override void UpdateStateTransforms(ArmedState state)
{
using (BeginAbsoluteSequence(HitObject.StartTime + 1000))
this.FadeOut();
LifetimeEnd = HitObject.StartTime + visible_range;
}
}
}

View File

@ -257,7 +257,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
}
}
if (state.Value != ArmedState.Idle && LifetimeEnd == double.MaxValue || HitObject.HitWindows == null)
if (LifetimeEnd == double.MaxValue && (state.Value != ArmedState.Idle || HitObject.HitWindows == null))
Expire();
// apply any custom state overrides