X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=common.h;h=f367ef66f705dae53b8894e93ca31a2e595084d6;hb=0253b815dba0bb4439541e4b855294af90ad1976;hp=4dd98044d103ea985dc631629993515545dc24e1;hpb=c165133925ee8190fe9c75a6a6cca5cd9442339c;p=xonotic%2Fdarkplaces.git diff --git a/common.h b/common.h index 4dd98044..f367ef66 100644 --- a/common.h +++ b/common.h @@ -115,10 +115,15 @@ void MSG_WriteShort (sizebuf_t *sb, int c); void MSG_WriteLong (sizebuf_t *sb, int c); void MSG_WriteFloat (sizebuf_t *sb, float f); void MSG_WriteString (sizebuf_t *sb, const char *s); -void MSG_WriteCoord (sizebuf_t *sb, float f); -void MSG_WriteAngle (sizebuf_t *sb, float f); -void MSG_WritePreciseAngle (sizebuf_t *sb, float f); -void MSG_WriteDPCoord (sizebuf_t *sb, float f); +void MSG_WriteAngle8i (sizebuf_t *sb, float f); +void MSG_WriteAngle16i (sizebuf_t *sb, float f); +void MSG_WriteAngle32f (sizebuf_t *sb, float f); +void MSG_WriteCoord13i (sizebuf_t *sb, float f); +void MSG_WriteCoord16i (sizebuf_t *sb, float f); +void MSG_WriteCoord32f (sizebuf_t *sb, float f); +void MSG_WriteCoord (sizebuf_t *sb, float f, int protocol); +void MSG_WriteVector (sizebuf_t *sb, float *v, int protocol); +void MSG_WriteAngle (sizebuf_t *sb, float f, int protocol); extern int msg_readcount; extern qboolean msg_badread; // set if a read goes beyond end of message @@ -139,12 +144,15 @@ int MSG_ReadBytes (int numbytes, unsigned char *out); #define MSG_ReadLong MSG_ReadLittleLong #define MSG_ReadFloat MSG_ReadLittleFloat -float MSG_ReadCoord (void); - -#define MSG_ReadAngle() (MSG_ReadByte() * (360.0f / 256.0f)) -#define MSG_ReadPreciseAngle() (MSG_ReadShort() * (360.0f / 65536.0f)) - -#define MSG_ReadVector(v) ((v)[0] = MSG_ReadCoord(), (v)[1] = MSG_ReadCoord(), (v)[2] = MSG_ReadCoord()) +float MSG_ReadAngle8i (void); +float MSG_ReadAngle16i (void); +float MSG_ReadAngle32f (void); +float MSG_ReadCoord13i (void); +float MSG_ReadCoord16i (void); +float MSG_ReadCoord32f (void); +float MSG_ReadCoord (int protocol); +void MSG_ReadVector (float *v, int protocol); +float MSG_ReadAngle (int protocol); //============================================================================ @@ -186,6 +194,8 @@ extern struct cvar_s cmdline; #define GAME_TENEBRAE 13 // full of evil hackery #define GAME_NEOTERIC 14 #define GAME_OPENQUARTZ 15 //this game sucks +#define GAME_PRYDON 16 +#define GAME_NETHERWORLD 17 extern int gamemode; extern const char *gamename;