commit 94231c98b7f3466c7ee95f8ddbf2eb749586d979 parent aa897e884be1381494b31628512afecc2c39f821 Author: William Casarin <jb55@jb55.com> Date: Tue, 2 Jul 2019 17:15:42 -0700 dont need this in scene anymore Diffstat:
M | src/scene.c | | | 21 | --------------------- |
1 file changed, 0 insertions(+), 21 deletions(-)
diff --git a/src/scene.c b/src/scene.c @@ -47,27 +47,6 @@ void default_scene(struct game *game) { } -static void delete_every_other_entity() -{ - u32 count; - entity_id *ids; - - for (u32 i = RESERVED_ENTITIES; i < 1000; i++) { - get_all_entities(&count, &ids); - - if (i >= count) - return; - - if (i % 2 == 0) { - struct entity *ent = get_entity(&ids[i]); assert(ent); - struct model *pmodel = get_model(&ent->model_id); assert(pmodel); - - destroy_model(&ent->model_id); - destroy_entity(&ids[i]); - } - } -} - void entity_test_scene(struct game *game)