int i;
int bits;
sizebuf_t buf;
- byte data[128];
+ qbyte data[128];
static double lastmovetime;
static float forwardmove, sidemove, upmove, total; // accumulation
buf.maxsize = 128;
buf.cursize = 0;
buf.data = data;
-
+
cl.cmd = *cmd;
//
MSG_WriteFloat (&buf, cl.mtime[0]); // so server can get ping times
- if (dpprotocol)
+ if (dpprotocol == DPPROTOCOL_VERSION2)
+ {
+ for (i = 0;i < 3;i++)
+ MSG_WriteFloat (&buf, cl.viewangles[i]);
+ }
+ else if (dpprotocol == DPPROTOCOL_VERSION1)
{
for (i=0 ; i<3 ; i++)
MSG_WritePreciseAngle (&buf, cl.viewangles[i]);