aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--map.c3
-rw-r--r--world.c1
2 files changed, 4 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);
diff --git a/world.c b/world.c
index 94aa1c7..52e2c5a 100644
--- a/world.c
+++ b/world.c
@@ -5,6 +5,7 @@ void init_world(World* w) {
w->particle_count = 0;
w->enemy_count = 0;
w->deathzone_count = 0;
+ w->effect_count = 0;
w->frame = 0;
w->freeze = 0;
init_player(&w->player);