refactor map

This commit is contained in:
2026-06-27 00:32:42 -07:00
parent bfc39201e1
commit 28165ed399
8 changed files with 25 additions and 21 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ enemy_still_on_map :: proc(world: ^World, slot: int) -> (^Enemy, bool) {
if slot < 0 || slot >= MAX_ENEMIES do return nil, false
e := &world.combat.enemies[slot]
if !e.active do return nil, false
if len(world.path) == 0 do return nil, false
if e.path_index >= len(world.path) do return nil, false
if len(world.world_map.path) == 0 do return nil, false
if e.path_index >= len(world.world_map.path) do return nil, false
return e, true
}