summaryrefslogtreecommitdiff
path: root/src/protocol.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
commitdc81516d860885e7e6b75c4ad978a09a2efb705d (patch)
treeba90215f2aed47f4688e8c91924e6463fca1beda /src/protocol.c
parent812da60594a9371b6883acacfd10b6be50673b4a (diff)
bullet cone
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c4
1 files changed, 3 insertions, 1 deletions
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);
}