git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4591
d7cf8633-e32d-0410-b094-
e92efae38249
// LordHavoc: round to nearest value, rather than rounding toward zero, fixes crosshair problem
float MSG_ReadAngle8i (void)
{
- return MSG_ReadByte () * (360.0/256.0);
+ return (signed char) MSG_ReadByte () * (360.0/256.0);
}
float MSG_ReadAngle16i (void)
{
- return (unsigned short)MSG_ReadShort () * (360.0/65536.0);
+ return (signed short)MSG_ReadShort () * (360.0/65536.0);
}
float MSG_ReadAngle32f (void)