aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index 34747a0..e670d6f 100644
--- a/src/world.c
+++ b/src/world.c
@@ -111,6 +111,7 @@ void buildWorldBVH(World* world)
{
leaf.entities[leafIndex] = closest;
grouped[closest] = true;
+ --ungroupedCount;
}
}
@@ -135,7 +136,6 @@ void buildWorldBVH(World* world)
world->bvhTest[world->bvhTestSize] = leaf;
++world->bvhTestSize;
- --ungroupedCount;
printf("size: %d\n", world->bvhTestSize);
}