Only initially add active entities to quadtree.

This commit is contained in:
Steve 2016-03-26 18:15:52 +00:00
parent f82f5c6d04
commit ca043f171c
1 changed files with 4 additions and 1 deletions

View File

@ -557,7 +557,10 @@ void addAllEntsToQuadtree(void)
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
{
addToQuadtree(e, &battle.quadtree);
if (e->active)
{
addToQuadtree(e, &battle.quadtree);
}
}
}