mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Merge pull request #26648 from peppy/fix-followpoint-pooling
Fix `FollowPointConnection` pool filling up when follow points are hidden
This commit is contained in:
commit
7f31070b87
@ -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