diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:24:46 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-11-02 18:24:46 +0100 |
| commit | 11fc04b238ff9d42b17e6befa6ab4a673606fc1a (patch) | |
| tree | cf4f48820fe3c55ed98c39038352924fab682ca8 /src/players.c | |
| parent | 0648e9ec83977fe5151896097afd1dbae3f4143b (diff) | |
throwables on server side
Diffstat (limited to 'src/players.c')
| -rw-r--r-- | src/players.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/players.c b/src/players.c index d88ac97..bd80d5b 100644 --- a/src/players.c +++ b/src/players.c @@ -240,12 +240,8 @@ void take_player_input(platform_window* window) { dirx /= length; diry /= length; - throw_throwable(window, player_id, THROWABLE_GRENADE, dirx, diry); - //network_message message = create_protocol_user_shoot(player_id, dirx, diry); - //add_message_to_outgoing_queuex(message, *global_state.client); - } - - + add_message_to_outgoing_queuex(create_protocol_user_throw(player_id, dirx, diry, THROWABLE_GRENADE), *global_state.client); + } } void update_players_client() { |
