From 964dfd035bf2eb458a549c7fca84d60cd6f71c9d Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 5 Oct 2024 17:11:30 +1000 Subject: Fix bugs with entity counts not being reset --- map.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'map.c') diff --git a/map.c b/map.c index 17de9a8..2acd988 100644 --- a/map.c +++ b/map.c @@ -180,6 +180,9 @@ void generate_enemies(const Map* m, World* w) { void generate_floor(Map* m, World* w) { Player* p = &w->player; + w->enemy_count = 0; + w->effect_count = 0; + w->deathzone_count = 0; generate_room(m); generate_ramps(m); generate_doors(m); -- cgit v1.2.3-54-g00ecf