diff options
Diffstat (limited to 'world.c')
-rw-r--r-- | world.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++; } |