Only initially add active entities to quadtree.
This commit is contained in:
parent
f82f5c6d04
commit
ca043f171c
|
@ -557,7 +557,10 @@ void addAllEntsToQuadtree(void)
|
||||||
|
|
||||||
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
|
for (e = battle.entityHead.next ; e != NULL ; e = e->next)
|
||||||
{
|
{
|
||||||
addToQuadtree(e, &battle.quadtree);
|
if (e->active)
|
||||||
|
{
|
||||||
|
addToQuadtree(e, &battle.quadtree);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue