mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Remove unnecessary LifetimeEnd
specification
This commit is contained in:
parent
cfd8d05fde
commit
a0c8158033
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Objects.Drawables;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||||
{
|
{
|
||||||
@ -37,16 +36,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
LifetimeStart = DrawableSpinner.HitObject.StartTime;
|
LifetimeStart = DrawableSpinner.HitObject.StartTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateHitStateTransforms(ArmedState state)
|
|
||||||
{
|
|
||||||
base.UpdateHitStateTransforms(state);
|
|
||||||
|
|
||||||
// the tick can be theoretically judged at any point in the spinner's duration,
|
|
||||||
// so it must be alive throughout the spinner's entire lifetime (or until hit, whichever applies).
|
|
||||||
// this mostly matters for correct sample playback.
|
|
||||||
LifetimeEnd = (Result?.IsHit == true ? Result.TimeAbsolute : DrawableSpinner.HitObject.GetEndTime()) + (Samples?.Length ?? 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Apply a judgement result.
|
/// Apply a judgement result.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user