aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index bf486e3..026a5ed 100644
--- a/src/world.c
+++ b/src/world.c
@@ -674,9 +674,14 @@ World createWorld(Seed seed, const Assets* assets)
// Items.
start = end;
- end = WORLD_ENTITY_MAX;
+ end = WORLD_ENTITY_MAX - 1;
seed = generateWorldItems(&world, seed, start, end);
+ // Test Samantha.
+ Entity samantha = createEntity(SAMANTHA, Vector3Scale(world.size, 0.5));
+ placeEntityOnGround(&samantha, &world);
+ world.entities[WORLD_ENTITY_MAX - 1] = samantha;
+
// Generate BVH.
double currentTime = GetTime();
buildWorldBVH(&world);