[nq] Move usercmd_t to protocol.h

Removes the need for the server code to include client.h
This commit is contained in:
Bill Currie 2022-06-03 15:42:10 +09:00
parent 1f16f875f6
commit 6c33fbb850
2 changed files with 9 additions and 9 deletions

View file

@ -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 {

View file

@ -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