summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-18 17:41:50 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-18 17:41:50 +0100
commit3e825971102a33dfbb82a20a365684d413bc1ba8 (patch)
tree718bf8a802bf3631bee22ef33161dec8d68ed6cf /include/players.h
parent9eefbb4afc9601024eac6191addd98e21f90a5b3 (diff)
refactor
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h5
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);