fix: Remove pending timer logic (#1416)

* remove pending timers

they serve no purpose anymore since iterator invalidation is a non-issue.  I added this initially to make it so if you added a timer this frame, there would be at least 1 frame before you would start it, but this in practice doesnt serve a purpose

* timers still work
This commit is contained in:
David Markowitz
2024-01-14 01:46:56 -08:00
committed by GitHub
parent 6592bbea46
commit 0a30430c4f
2 changed files with 18 additions and 22 deletions

View File

@@ -330,9 +330,7 @@ protected:
std::unordered_map<eReplicaComponentType, Component*> m_Components;
std::vector<EntityTimer> m_Timers;
std::vector<EntityTimer> m_PendingTimers;
std::vector<EntityCallbackTimer> m_CallbackTimers;
std::vector<EntityCallbackTimer> m_PendingCallbackTimers;
bool m_ShouldDestroyAfterUpdate = false;