mirror of
https://github.com/ppy/osu.git
synced 2025-03-22 00:07:19 +08:00
Fix wrong InitialLifetimeOffset is used for a non-pooled DHO.
HitObjectLifetimeEntry's InitialLifetimeOffset is different from DrawableHitObject's InitialLifetimeOffset.
This commit is contained in:
parent
44ff08cce4
commit
73d3da1687
@ -239,6 +239,11 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
lifetimeEntry = newEntry;
|
||||
|
||||
// LifetimeStart is already computed using HitObjectLifetimeEntry's InitialLifetimeOffset.
|
||||
// We override this with DHO's InitialLifetimeOffset for a non-pooled DHO.
|
||||
if (newEntry is SyntheticHitObjectEntry)
|
||||
lifetimeEntry.LifetimeStart = HitObject.StartTime - InitialLifetimeOffset;
|
||||
|
||||
LifetimeStart = lifetimeEntry.LifetimeStart;
|
||||
LifetimeEnd = lifetimeEntry.LifetimeEnd;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user