[nq] Move usercmd_t to protocol.h
Removes the need for the server code to include client.h
This commit is contained in:
parent
1f16f875f6
commit
6c33fbb850
|
@ -47,15 +47,6 @@
|
||||||
#include "protocol.h"
|
#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
|
// client_state_t should hold all pieces of the client state
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
@ -225,4 +225,13 @@
|
||||||
|
|
||||||
#include "client/entities.h" // for entity_state_t
|
#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
|
#endif // __protocol_h
|
||||||
|
|
Loading…
Reference in New Issue