mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 05:52:56 +08:00
Fix FollowPointConnection
pool filling up when follow points are hidden
Closes https://github.com/ppy/osu/issues/26642. I think this applied to all pooling cases here.
This commit is contained in:
parent
1e44ba6d23
commit
1999e772f6
@ -153,6 +153,9 @@ namespace osu.Game.Rulesets.Objects.Pooling
|
|||||||
|
|
||||||
protected override bool CheckChildrenLife()
|
protected override bool CheckChildrenLife()
|
||||||
{
|
{
|
||||||
|
if (!IsPresent)
|
||||||
|
return false;
|
||||||
|
|
||||||
bool aliveChanged = base.CheckChildrenLife();
|
bool aliveChanged = base.CheckChildrenLife();
|
||||||
aliveChanged |= lifetimeManager.Update(Time.Current - PastLifetimeExtension, Time.Current + FutureLifetimeExtension);
|
aliveChanged |= lifetimeManager.Update(Time.Current - PastLifetimeExtension, Time.Current + FutureLifetimeExtension);
|
||||||
return aliveChanged;
|
return aliveChanged;
|
||||||
|
Loading…
Reference in New Issue
Block a user