From f646ddb88ec19307d42729b7babdb77966449327 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 18 May 2024 12:31:46 +0200 Subject: ingame menu & network work --- src/zombies.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/zombies.c') diff --git a/src/zombies.c b/src/zombies.c index 946641f..a4fc94e 100644 --- a/src/zombies.c +++ b/src/zombies.c @@ -351,6 +351,13 @@ void update_zombies_client(platform_window* window) { } } +void clear_zombies() +{ + for (int i = 0; i < SERVER_MAX_ZOMBIES; i++) { + zombies[i].alive = 0; + } +} + static vec2f get_random_point_around_player(player p, zombie o) { // Convert from degrees to radians via multiplication by PI/180 -- cgit v1.2.3-70-g09d2