Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CLevel::DeleteRemovedEntities()
- {
- // If there's no entities to remove.
- if (m_RemovedEntities.size() == 0) return;
- // Loops over all entities to be removed.
- for (auto entity : m_RemovedEntities)
- {
- if (!entity) continue;
- DeleteEntity(entity);
- }
- // Clears the list as all the entities are removed above.
- m_RemovedEntities.clear();
- }
Advertisement
Add Comment
Please, Sign In to add comment