clean up paths

This commit is contained in:
2026-07-06 01:13:18 -07:00
parent 59825b5025
commit a3f760e1f1
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -27,6 +27,11 @@ entity_world_init :: proc() -> Entity_World {
return Entity_World{}
}
entity_world_destroy :: proc(ew: ^Entity_World) {
for i in 0 ..< MAX_ENTITIES {
path_destroy(&ew.path[i])
}
}
entity_spawn_colonist :: proc(ew: ^Entity_World, pos: Tile_Coord) -> Entity {
for i in 0 ..< MAX_ENTITIES {
if !ew.active[i] {