From 812da60594a9371b6883acacfd10b6be50673b4a Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 5 Nov 2023 12:07:25 +0100 Subject: round overlay --- src/zombies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zombies.c') diff --git a/src/zombies.c b/src/zombies.c index a3fad4c..576fb95 100644 --- a/src/zombies.c +++ b/src/zombies.c @@ -102,9 +102,9 @@ void update_spawners_server() { for (int x = 0; x < MAX_SPAWNERS; x++) { spawner spawner = spawner_tiles[x]; if (!spawner.active) continue; - if (zombies_left_in_current_round() <= 0) continue; update_sprite(&spawner_tiles[x].sprite); spawner_tiles[x].sec_since_last_spawn += SERVER_TICK_RATE; + if (zombies_left_in_current_round() <= 0) continue; if (spawner_tiles[x].sec_since_last_spawn >= 1.0f) { spawn_zombie(spawner.position.x, spawner.position.y); spawner_tiles[x].sec_since_last_spawn = 0; -- cgit v1.2.3-70-g09d2