void MSG_WriteCoord (sizebuf_t *sb, float f, int protocol)
{
- if (protocol == PROTOCOL_QUAKE)
+ if (protocol == PROTOCOL_QUAKE || protocol == PROTOCOL_NEHAHRAMOVIE)
MSG_WriteCoord13i (sb, f);
- else if (protocol == PROTOCOL_DARKPLACES1 || protocol == PROTOCOL_DARKPLACES5)
+ else if (protocol == PROTOCOL_DARKPLACES1 || protocol == PROTOCOL_DARKPLACES5 || protocol == PROTOCOL_DARKPLACES6)
MSG_WriteCoord32f (sb, f);
else if (protocol == PROTOCOL_DARKPLACES2 || protocol == PROTOCOL_DARKPLACES3 || protocol == PROTOCOL_DARKPLACES4)
MSG_WriteCoord16i (sb, f);
void MSG_WriteAngle (sizebuf_t *sb, float f, int protocol)
{
- if (protocol == PROTOCOL_DARKPLACES5)
+ if (protocol == PROTOCOL_DARKPLACES5 || protocol == PROTOCOL_DARKPLACES6)
MSG_WriteAngle16i (sb, f);
else
MSG_WriteAngle8i (sb, f);
float MSG_ReadCoord (int protocol)
{
- if (protocol == PROTOCOL_QUAKE || protocol == 250)
+ if (protocol == PROTOCOL_QUAKE || protocol == PROTOCOL_NEHAHRAMOVIE)
return MSG_ReadCoord13i();
- else if (protocol == PROTOCOL_DARKPLACES1 || protocol == PROTOCOL_DARKPLACES5)
+ else if (protocol == PROTOCOL_DARKPLACES1 || protocol == PROTOCOL_DARKPLACES5 || protocol == PROTOCOL_DARKPLACES6)
return MSG_ReadCoord32f();
else if (protocol == PROTOCOL_DARKPLACES2 || protocol == PROTOCOL_DARKPLACES3 || protocol == PROTOCOL_DARKPLACES4)
return MSG_ReadCoord16i();
float MSG_ReadAngle (int protocol)
{
- if (protocol == PROTOCOL_DARKPLACES5)
+ if (protocol == PROTOCOL_DARKPLACES5 || protocol == PROTOCOL_DARKPLACES6)
return MSG_ReadAngle16i ();
else
return MSG_ReadAngle8i ();
// quoted string
for (data++;*data != '\"';data++)
{
+ if (*data == '\\' && data[1] == '"' )
+ data++;
if (!*data || len >= (int)sizeof(com_token) - 1)
{
com_token[0] = 0;