Changed network protocol coordinate range
This commit is contained in:
parent
dac38af584
commit
9ead150c1e
1 changed files with 2 additions and 7 deletions
9
common.c
9
common.c
|
@ -689,7 +689,7 @@ void MSG_WriteString (sizebuf_t *sb, char *s)
|
||||||
|
|
||||||
void MSG_WriteCoord (sizebuf_t *sb, float f)
|
void MSG_WriteCoord (sizebuf_t *sb, float f)
|
||||||
{
|
{
|
||||||
MSG_WriteShort (sb, (int)(f*8));
|
MSG_WriteLong (sb, (int)(f*8));
|
||||||
}
|
}
|
||||||
//Round to nearest value, rather than rounding toward zero - Eradicator
|
//Round to nearest value, rather than rounding toward zero - Eradicator
|
||||||
void MSG_WriteAngle (sizebuf_t *sb, float f)
|
void MSG_WriteAngle (sizebuf_t *sb, float f)
|
||||||
|
@ -834,7 +834,7 @@ char *MSG_ReadString (void)
|
||||||
|
|
||||||
float MSG_ReadCoord (void)
|
float MSG_ReadCoord (void)
|
||||||
{
|
{
|
||||||
return MSG_ReadShort() * (0.125f); //Spedup Small Calculation - Eradicator
|
return MSG_ReadLong() * (0.125f); //Spedup Small Calculation - Eradicator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -843,11 +843,6 @@ float MSG_ReadAngle (void)
|
||||||
return MSG_ReadChar() * (1.40625f); //Spedup Small Calculation - Eradicator
|
return MSG_ReadChar() * (1.40625f); //Spedup Small Calculation - Eradicator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
void SZ_Alloc (sizebuf_t *buf, int startsize)
|
void SZ_Alloc (sizebuf_t *buf, int startsize)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue