From dc81516d860885e7e6b75c4ad978a09a2efb705d Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 5 Nov 2023 13:21:22 +0100 Subject: bullet cone --- src/protocol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/protocol.c') diff --git a/src/protocol.c b/src/protocol.c index d8506b7..de1a8d1 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -107,13 +107,15 @@ network_message create_protocol_user_shoot(u32 id, float dirx, float diry) return network_create_message((u8*)buf, sizeof(protocol_user_shoot), MAX_NETWORK_BUFFER_SIZE); } -network_message create_protocol_user_look(u32 id, float gunx, float guny) +network_message create_protocol_user_look(u32 id, float gunx, float guny, float dirx, float diry) { protocol_user_look *buf = alloc_network_message(protocol_user_look); buf->type = MESSAGE_USER_LOOK; buf->id = id; buf->gunx = gunx; buf->guny = guny; + buf->dirx = dirx; + buf->diry = diry; return network_create_message((u8*)buf, sizeof(protocol_user_look), MAX_NETWORK_BUFFER_SIZE); } -- cgit v1.2.3-70-g09d2