"Better" lighting and stuff

This commit is contained in:
2014-03-14 03:35:52 +01:00
parent 9f2334bcb6
commit 2d5ba34a1a
6 changed files with 29 additions and 21 deletions
+5
View File
@@ -63,6 +63,11 @@ bool World::ValidEntity(EntityID entity)
void World::RemoveEntity(EntityID entity)
{
m_EntitiesToRemove.push_back(entity);
for (auto pair : m_EntityParents) {
if (pair.second == entity) {
m_EntitiesToRemove.push_back(pair.first);
}
}
}
void World::ProcessEntityRemovals()