diff options
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/world.h b/src/world.h index 46bd248..69f81bd 100644 --- a/src/world.h +++ b/src/world.h @@ -22,7 +22,7 @@ typedef int16_t WorldUID; typedef struct BVHNode { BoundingBox box; - WorldUID entities[BVH_MAX]; + WorldUID entities[BVH_MAX]; // Only for leafs. struct BVHNode* branch1; struct BVHNode* branch2; } BVHNode; @@ -34,6 +34,7 @@ typedef struct { Entity entities[WORLD_ENTITY_MAX]; BVHNode bvh; BVHNode bvhTest[BVH_LEAF_COUNT]; + int bvhTestSize; } World; World createWorld(int seed); |