diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-12 18:06:53 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-12 18:06:53 +0100 |
| commit | 9528c0c69dba57117f38f84f576af2c81a3b435b (patch) | |
| tree | 14f3b21a19f3733e05d64e1fc4113af52516a441 /include/players.h | |
| parent | 10ae402862df4337772fe8e35f68ee8ab5bfc224 (diff) | |
multiplayer
Diffstat (limited to 'include/players.h')
| -rw-r--r-- | include/players.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/players.h b/include/players.h index cd7560f..ea12a96 100644 --- a/include/players.h +++ b/include/players.h @@ -19,12 +19,12 @@ typedef struct t_player { float gun_height; } player; -int my_id = 1; +u32 my_id = 1; int max_players = 10; player players[10] = {0}; -player get_player_by_id(int id); +player* get_player_by_id(u32 id); void draw_players_at_tile(platform_window* window, int x, int y); void draw_bullets(platform_window* window); float get_player_size(platform_window* window); |
