diff options
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); |
