diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 13:06:45 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-18 13:06:45 +0200 |
| commit | c548d74f4daac078c1338e5f8daf4afe980e08a9 (patch) | |
| tree | 003ded17200ae0bf19f8a56cd7276cf7e590cebb /include/zombies.h | |
| parent | f646ddb88ec19307d42729b7babdb77966449327 (diff) | |
move stuff from stack to heap
Diffstat (limited to 'include/zombies.h')
| -rw-r--r-- | include/zombies.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zombies.h b/include/zombies.h index 1b3a728..a0cbc79 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -51,10 +51,10 @@ typedef struct t_spawner { #define MIN_DISTANCE_BETWEEN_ZOMBIE_AND_PLAYER 20 #define MAX_SPAWNERS (25) -spawner spawner_tiles[MAX_SPAWNERS] = {0}; +spawner* spawner_tiles; #define SERVER_MAX_ZOMBIES (50) -zombie zombies[SERVER_MAX_ZOMBIES] = {0}; +zombie* zombies; bool hit_zombie(int index, int damage); void create_spawner(vec2 position); |
