MSG_WriteFloat (&buf, cl.mtime[0]); // so server can get ping times
- if (cl.protocol == PROTOCOL_QUAKE)
+ if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_NEHAHRAMOVIE)
{
for (i = 0;i < 3;i++)
MSG_WriteAngle8i (&buf, cl.viewangles[i]);
for (i = 0;i < 3;i++)
MSG_WriteAngle16i (&buf, cl.viewangles[i]);
}
+ else
+ Host_Error("CL_SendMove: unknown cl.protocol %i\n", cl.protocol);
MSG_WriteCoord16i (&buf, forwardmove);
MSG_WriteCoord16i (&buf, sidemove);
}
}
-void CL_ReadEntityFrame(void)
-{
- if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3)
- EntityFrame_CL_ReadFrame();
- else if (cl.protocol == PROTOCOL_DARKPLACES4)
- EntityFrame4_CL_ReadFrame();
- else if (cl.protocol == PROTOCOL_DARKPLACES5)
- EntityFrame5_CL_ReadFrame();
-}
-
/*
==================
CL_ParseBaseline
{
if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4 || cl.protocol == PROTOCOL_DARKPLACES5)
cl.punchangle[i] = MSG_ReadAngle16i();
- else if (cl.protocol == PROTOCOL_QUAKE)
+ else if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_NEHAHRAMOVIE)
cl.punchangle[i] = MSG_ReadChar();
else
- Host_Error("CL_ParseClientData: unknown cl.protocol\n");
+ Host_Error("CL_ParseClientData: unknown cl.protocol %i\n", cl.protocol);
}
else
cl.punchangle[i] = 0;
else if (cl.protocol == PROTOCOL_DARKPLACES5)
cl.punchvector[i] = MSG_ReadCoord32f();
else
- Host_Error("CL_ParseClientData: unknown cl.protocol\n");
+ Host_Error("CL_ParseClientData: unknown cl.protocol %i\n", cl.protocol);
}
else
cl.punchvector[i] = 0;
if (bits & (SU_VELOCITY1<<i) )
{
- if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
+ if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_NEHAHRAMOVIE || cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3 || cl.protocol == PROTOCOL_DARKPLACES4)
cl.mvelocity[0][i] = MSG_ReadChar()*16;
else if (cl.protocol == PROTOCOL_DARKPLACES5)
cl.mvelocity[0][i] = MSG_ReadCoord32f();
else
- Host_Error("CL_ParseClientData: unknown cl.protocol\n");
+ Host_Error("CL_ParseClientData: unknown cl.protocol %i\n", cl.protocol);
}
else
cl.mvelocity[0][i] = 0;
cls.signon = SIGNONS;
CL_SignonReply ();
}
- CL_ReadEntityFrame();
+ if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3)
+ EntityFrame_CL_ReadFrame();
+ else if (cl.protocol == PROTOCOL_DARKPLACES4)
+ EntityFrame4_CL_ReadFrame();
+ else if (cl.protocol == PROTOCOL_DARKPLACES5)
+ EntityFrame5_CL_ReadFrame();
+ else
+ Host_Error("CL_ParseServerMessage: svc_entities: unknown cl.protocol %i\n", cl.protocol);
break;
}
}