From 8c44753f1294c3ad4fbf64c8c3b390d06cdc99d9 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sun, 13 Jan 2008 02:35:32 +0000 Subject: New minor Q2PRO protocol version, 1012. Save up to 6 bits on each usercmd vector component. Measure frame duration more accurately in CL_UpdateCmd. --- source/cl_input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/cl_input.c') diff --git a/source/cl_input.c b/source/cl_input.c index 5802571..36c51d2 100644 --- a/source/cl_input.c +++ b/source/cl_input.c @@ -598,6 +598,9 @@ void CL_UpdateCmd( int msec ) { return; } + // add to milliseconds of time to apply the move + cl.cmd.msec += msec; + // adjust viewangles CL_AdjustAngles( msec ); @@ -607,9 +610,6 @@ void CL_UpdateCmd( int msec ) { // allow mice or other external controllers to add to the move CL_MouseMove(); - // add to milliseconds of time to apply the move - cl.cmd.msec += msec; - CL_ClampPitch(); cl.cmd.angles[0] = ANGLE2SHORT( cl.viewangles[0] ); @@ -954,7 +954,7 @@ static void CL_SendBatchedCmd( void ) { for( j = oldest->cmdNumber + 1; j <= history->cmdNumber; j++ ) { cmd = &cl.cmds[j & CMD_MASK]; totalMsec += cmd->msec; - bits = MSG_WriteDeltaUsercmd_Enhanced( oldcmd, cmd ); + bits = MSG_WriteDeltaUsercmd_Enhanced( oldcmd, cmd, cls.protocolVersion ); if( cl_showpackets->integer == 3 ) { MSG_ShowDeltaUsercmdBits_Enhanced( bits ); } -- cgit v1.2.3