diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 17:41:50 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 17:41:50 +0100 |
| commit | 3e825971102a33dfbb82a20a365684d413bc1ba8 (patch) | |
| tree | 718bf8a802bf3631bee22ef33161dec8d68ed6cf /include/players.h | |
| parent | 9eefbb4afc9601024eac6191addd98e21f90a5b3 (diff) | |
refactor
Diffstat (limited to 'include/players.h')
| -rw-r--r-- | include/players.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/players.h b/include/players.h index f76e620..027fb31 100644 --- a/include/players.h +++ b/include/players.h @@ -9,6 +9,8 @@ #include "math_helper.h" #include "guns.h" +#define MAX_PLAYERS 10 + typedef struct t_player { u32 id; bool active; @@ -33,8 +35,7 @@ u32 player_id = -1; camera _next_camera_pos; -int max_players = 10; -player players[10] = {0}; +player players[MAX_PLAYERS] = {0}; int get_player_count(); player* get_player_by_id(u32 id); |
