diff --git a/src/battle/entities.c b/src/battle/entities.c index 914bdb5..f3a7155 100644 --- a/src/battle/entities.c +++ b/src/battle/entities.c @@ -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); + } } }