From 6c33fbb85075efdb5eb3eeae5f6376cf3779b622 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 3 Jun 2022 15:42:10 +0900 Subject: [PATCH] [nq] Move usercmd_t to protocol.h Removes the need for the server code to include client.h --- nq/include/client.h | 9 --------- nq/include/protocol.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/nq/include/client.h b/nq/include/client.h index 963b599a2..9aec5fed3 100644 --- a/nq/include/client.h +++ b/nq/include/client.h @@ -47,15 +47,6 @@ #include "protocol.h" -typedef struct usercmd_s { - vec3_t viewangles; - -// intended velocities - float forwardmove; - float sidemove; - float upmove; -} usercmd_t; - // client_state_t should hold all pieces of the client state typedef enum { diff --git a/nq/include/protocol.h b/nq/include/protocol.h index 2d9d6309d..d3bc67faf 100644 --- a/nq/include/protocol.h +++ b/nq/include/protocol.h @@ -225,4 +225,13 @@ #include "client/entities.h" // for entity_state_t +typedef struct usercmd_s { + vec3_t viewangles; + +// intended velocities + float forwardmove; + float sidemove; + float upmove; +} usercmd_t; + #endif // __protocol_h