Only initially add active entities to quadtree.
This commit is contained in:
parent
f82f5c6d04
commit
ca043f171c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue