From 40eb179043b77f011fb1048c386ee187f64569d0 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 09:37:45 +1000 Subject: Add waves and some more polish. --- world.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'world.c') diff --git a/world.c b/world.c index 4995351..3ee369d 100644 --- a/world.c +++ b/world.c @@ -36,6 +36,9 @@ Entity new_entity(World* world) { void destroy_entity(World* world, Entity e) { world->recycle_bin[world->recycle_bin_count++] = e; + if (world->bitmask[e] & ctype_enemy) { + world->enemy_count--; + } world->bitmask[e] = 0; world->gmemory++; } -- cgit v1.2.3-54-g00ecf