kevinortegren / zombieshroom

Large game project
11 stars 2 forks source link

Entities with Timer components are sometimes not updated by the TimerSystem. #154

Closed rarosu closed 10 years ago

rarosu commented 10 years ago

This can be reproduced on the current network branch (and probably master too). Load up a level and start spamming as many AbilityBall as possible. After a while, some balls will not be removed.

The AbilityBall entity will still have the same components as the other balls (same flag). It will also have a TimerComponent, but it will never enter the TimerSystem (TimeLeft will stay at 7 seconds forever).

Identiray which is on the right mouse-button (on the network branch) can be used to get diagnostics about the entity.

rarosu commented 10 years ago

Has been fixed. This was an issue with an old entity remaining in the m_entitiesToRemove list, even though the entity had been recycled and readded.