diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-15 14:54:55 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-15 14:54:55 +0100 |
| commit | 8c086739e1344fb8789e89074dd962c5719ab030 (patch) | |
| tree | 86ae878cd5f90a82b7fee454e4adae69de542bb4 /include/players.h | |
| parent | 7b956089e6ba5162fb0b667f1c0a60f6ece90c38 (diff) | |
local session id generation, bullet icon drop, refactor
Diffstat (limited to 'include/players.h')
| -rw-r--r-- | include/players.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/players.h b/include/players.h index ab8da4c..ce88688 100644 --- a/include/players.h +++ b/include/players.h @@ -10,7 +10,7 @@ #include "guns.h" typedef struct t_player { - int id; + u32 id; bool active; float sec_since_last_shot; float playerx; @@ -29,7 +29,7 @@ typedef struct t_player { #include "protocol.h" -u32 my_id = -1; +u32 player_id = -1; camera _next_camera_pos; @@ -44,6 +44,6 @@ object check_if_player_collided_with_object(platform_window* window, player p); float get_player_size(platform_window* window); void move_user(platform_window* window, u32 id, protocol_move_type move); void update_players_server(); -void spawn_player(int id, network_client client); +void spawn_player(u32 id, network_client client); #endif
\ No newline at end of file |
