summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
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);