From: havoc Date: Wed, 17 Oct 2007 08:34:26 +0000 (+0000) Subject: fixed cl.movement_origin being invalid on quake protocol (and others X-Git-Tag: xonotic-v0.1.0preview~2839 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b2845cb60cd992d5ae7050c00e49349203d970e;p=xonotic%2Fdarkplaces.git fixed cl.movement_origin being invalid on quake protocol (and others before dp6), this fixes the loc messages in chat on quake servers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7641 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index b0d1d20d..d65d60fc 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1522,6 +1522,8 @@ void CL_SendMove(void) { if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE || cls.protocol == PROTOCOL_NEHAHRABJP || cls.protocol == PROTOCOL_NEHAHRABJP2 || cls.protocol == PROTOCOL_NEHAHRABJP3) { + CL_ClientMovement_Input((cl.movecmd[0].buttons & 2) != 0, false); + // 5 bytes MSG_WriteByte (&buf, clc_move); MSG_WriteFloat (&buf, cl.movecmd[0].time); // last server packet time @@ -1538,6 +1540,8 @@ void CL_SendMove(void) } else if (cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3) { + CL_ClientMovement_Input((cl.movecmd[0].buttons & 2) != 0, false); + // 5 bytes MSG_WriteByte (&buf, clc_move); MSG_WriteFloat (&buf, cl.movecmd[0].time); // last server packet time @@ -1554,6 +1558,8 @@ void CL_SendMove(void) } else if (cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES4 || cls.protocol == PROTOCOL_DARKPLACES5) { + CL_ClientMovement_Input((cl.movecmd[0].buttons & 2) != 0, false); + // 5 bytes MSG_WriteByte (&buf, clc_move); MSG_WriteFloat (&buf, cl.movecmd[0].time); // last server packet time