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
This commit is contained in:
Spoike 2006-02-22 23:36:55 +00:00
parent 1fa55dfa47
commit 5e5b4c9bf2

View file

@ -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;
}