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

@ -556,10 +556,13 @@ void addAllEntsToQuadtree(void)
Entity *e; Entity *e;
for (e = battle.entityHead.next ; e != NULL ; e = e->next) for (e = battle.entityHead.next ; e != NULL ; e = e->next)
{
if (e->active)
{ {
addToQuadtree(e, &battle.quadtree); addToQuadtree(e, &battle.quadtree);
} }
} }
}
static int drawComparator(const void *a, const void *b) static int drawComparator(const void *a, const void *b)
{ {