Added 'destroy_children' parameter to game_world_destroy_entity().

This commit is contained in:
2025-12-18 12:10:25 +01:00
parent 4e807afa3c
commit 199afff820
4 changed files with 42 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ void simulation_world_tick(Simulation_World *simulation_world) {
assert(player->active);
player->active = false;
game_world_destroy_entity(simulation_world->game_world, player->entity_id);
game_world_destroy_entity(simulation_world->game_world, player->entity_id, true);
break;
}