mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Moved radarUnpacked_t from server.h to q_shared.h
This commit is contained in:
parent
456ed42e14
commit
06a7341eda
2 changed files with 20 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue