Guest User

Untitled

a guest
Sep 14th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. void CLevel::DeleteRemovedEntities()
  2. {
  3.     // If there's no entities to remove.
  4.     if (m_RemovedEntities.size() == 0) return;
  5.  
  6.     // Loops over all entities to be removed.
  7.     for (auto entity : m_RemovedEntities)
  8.     {
  9.         if (!entity) continue;
  10.         DeleteEntity(entity);
  11.     }
  12.  
  13.     // Clears the list as all the entities are removed above.
  14.     m_RemovedEntities.clear();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment