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:
parent
1fa55dfa47
commit
5e5b4c9bf2
1 changed files with 7 additions and 1 deletions
|
@ -798,7 +798,7 @@ void CLNQ_SendCmd(void)
|
||||||
CL_SendClientCommand(true, "name \"%s\"\n", name.string);
|
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_WriteByte(&cls.netchan.message, 50);
|
||||||
MSG_WriteLong(&cls.netchan.message, cl_latestframenum);
|
MSG_WriteLong(&cls.netchan.message, cl_latestframenum);
|
||||||
|
@ -1188,6 +1188,12 @@ void CL_SendCmd (float frametime)
|
||||||
return;
|
return;
|
||||||
msecs -= msecstouse;
|
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 ();
|
CLNQ_SendCmd ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue