floating point orgs added
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@434 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5e9a4033cb
commit
3c5ef43b0d
1 changed files with 10 additions and 0 deletions
|
@ -105,6 +105,16 @@ struct usercmd_s;
|
||||||
|
|
||||||
extern struct usercmd_s nullcmd;
|
extern struct usercmd_s nullcmd;
|
||||||
|
|
||||||
|
typedef union { //note: reading from packets can be misaligned
|
||||||
|
char b[4];
|
||||||
|
short b2;
|
||||||
|
int b4;
|
||||||
|
float f;
|
||||||
|
} coorddata;
|
||||||
|
extern int sizeofcoord;
|
||||||
|
float MSG_FromCoord(coorddata c, int bytes);
|
||||||
|
coorddata MSG_ToCoord(float f, int bytes);
|
||||||
|
|
||||||
void MSG_WriteChar (sizebuf_t *sb, int c);
|
void MSG_WriteChar (sizebuf_t *sb, int c);
|
||||||
void MSG_WriteByte (sizebuf_t *sb, int c);
|
void MSG_WriteByte (sizebuf_t *sb, int c);
|
||||||
void MSG_WriteShort (sizebuf_t *sb, int c);
|
void MSG_WriteShort (sizebuf_t *sb, int c);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue