aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-05 17:11:30 +1000
committerquou <quou@disroot.org>2024-10-05 17:11:30 +1000
commit964dfd035bf2eb458a549c7fca84d60cd6f71c9d (patch)
tree71c011e33a913fa58c7e6cb91f78067df950503f /map.c
parent8f6e5a1aba52b46fc20408e3064ddf60390615c0 (diff)
Fix bugs with entity counts not being reset
Diffstat (limited to 'map.c')
-rw-r--r--map.c3
1 files changed, 3 insertions, 0 deletions
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);