From 5e5b4c9bf2dccf2f4e33c742ff221862dd4bc012 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Feb 2006 23:36:55 +0000 Subject: [PATCH] Trying to make our NQ client more robust. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1998 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_input.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_input.c b/engine/client/cl_input.c index 4f4b95622..d9385a719 100644 --- a/engine/client/cl_input.c +++ b/engine/client/cl_input.c @@ -798,7 +798,7 @@ void CLNQ_SendCmd(void) CL_SendClientCommand(true, "name \"%s\"\n", name.string); } - if (nq_dp_protocol > 0) + if (nq_dp_protocol > 0 && cls.signon == 4) { MSG_WriteByte(&cls.netchan.message, 50); MSG_WriteLong(&cls.netchan.message, cl_latestframenum); @@ -1188,6 +1188,12 @@ void CL_SendCmd (float frametime) return; msecs -= msecstouse; + i = cls.netchan.outgoing_sequence & UPDATE_MASK; + cmd = &cl.frames[i].cmd[plnum]; + *cmd = independantphysics[plnum]; + cl.frames[i].senttime = realtime; + memset(&independantphysics[plnum], 0, sizeof(independantphysics[plnum])); + CLNQ_SendCmd (); return; }