diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 12:31:46 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 12:31:46 +0200 |
| commit | f646ddb88ec19307d42729b7babdb77966449327 (patch) | |
| tree | 0f7031bf54ef2b3274380211e05bcfa66420ebe3 /src/zombies.c | |
| parent | 003c13a4ae07c3ec15a31df0f7f65e3d1ffe9ae0 (diff) | |
ingame menu & network work
Diffstat (limited to 'src/zombies.c')
| -rw-r--r-- | src/zombies.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
