Merge remote-tracking branch 'origin/master' into havok
Conflicts: src/GameWorld.cpp vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
+6
-4
@@ -78,14 +78,16 @@ bool World::ValidEntity(EntityID entity)
|
||||
|
||||
void World::RemoveEntity(EntityID entity)
|
||||
{
|
||||
m_EntitiesToRemove.insert(entity);
|
||||
for (auto pair : m_EntityParents)
|
||||
auto it = m_EntityChildren.find(entity);
|
||||
if (it != m_EntityChildren.end())
|
||||
{
|
||||
if (pair.second == entity)
|
||||
for (auto entity : it->second)
|
||||
{
|
||||
m_EntitiesToRemove.insert(pair.first);
|
||||
m_EntitiesToRemove.insert(entity);
|
||||
}
|
||||
}
|
||||
|
||||
m_EntitiesToRemove.insert(entity);
|
||||
}
|
||||
|
||||
void World::ProcessEntityRemovals()
|
||||
|
||||
Reference in New Issue
Block a user