Moved radarUnpacked_t from server.h to q_shared.h

This commit is contained in:
smallmodel 2023-08-15 22:20:25 +02:00
parent 456ed42e14
commit 06a7341eda
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 20 additions and 8 deletions

View file

@ -828,7 +828,8 @@ float erandom( float mean );
void vectoangles( const vec3_t value1, vec3_t angles );
void VectorToAngles( const vec3_t vec, vec3_t angles );
void AnglesToAxis( const vec3_t angles, vec3_t axis[3] );
void AnglesToAxis(const vec3_t angles, vec3_t axis[3]);
void YawToAxis(float yaw, float axis[2]);
static void init( void );
float noise1(float arg);
@ -2180,6 +2181,24 @@ typedef enum _flag_status {
FLAG_DROPPED
} flagStatus_t;
//
// Radar system
//
typedef struct {
int time;
int lastSpeakTime;
qboolean bValid;
float origin[2];
float axis[2];
} radarClient_t;
typedef struct {
int clientNum;
float x;
float y;
float yaw;
} radarUnpacked_t;
#define MAX_GLOBAL_SERVERS 2048
#define MAX_OTHER_SERVERS 128
#define MAX_PINGREQUESTS 32

View file

@ -90,13 +90,6 @@ typedef struct {
int gameClientSize; // will be > sizeof(playerState_t) due to game private data
} server_t;
typedef struct {
int clientNum;
float x;
float y;
float yaw;
} radarUnpacked_t;
typedef struct {
int areabytes;
byte areabits[MAX_MAP_AREA_BYTES]; // portalarea visibility bits