refactor enemy to remove redundancy

This commit is contained in:
2026-06-28 23:36:37 -07:00
parent 2c4527ae8b
commit f2a24a37b8
2 changed files with 43 additions and 48 deletions
+2 -1
View File
@@ -124,8 +124,9 @@ test_update_wave_spawns_and_resets_timer :: proc(t: ^testing.T) {
@(test)
test_update_phase_from_build_phase :: proc(t: ^testing.T) {
world := World{}
world.phase = .Build
defer delete(world.events)
world.phase = .Build
update_phase(&world)
testing.expect(t, world.phase == .Build)