mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fixed impulses on NQ servers, and a safty check for backwards running time.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@496 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
72c3b0e8b2
commit
91f0bd860c
1 changed files with 3 additions and 1 deletions
|
@ -590,7 +590,7 @@ void CLNQ_SendMove (usercmd_t *cmd, int pnum)
|
||||||
{
|
{
|
||||||
in_nextimpulse[pnum]++;
|
in_nextimpulse[pnum]++;
|
||||||
in_impulsespending[pnum]--;
|
in_impulsespending[pnum]--;
|
||||||
MSG_WriteByte(&buf, in_impulse[pnum][(in_nextimpulse[pnum])%IN_IMPULSECACHE]);
|
MSG_WriteByte(&buf, in_impulse[pnum][(in_nextimpulse[pnum]-1)%IN_IMPULSECACHE]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
MSG_WriteByte (&buf, 0);
|
MSG_WriteByte (&buf, 0);
|
||||||
|
@ -792,6 +792,8 @@ void CL_SendCmd (void)
|
||||||
|
|
||||||
if (msecs>1000) //come on... That's just stupid.
|
if (msecs>1000) //come on... That's just stupid.
|
||||||
msecs=255;
|
msecs=255;
|
||||||
|
if (msecs<0)
|
||||||
|
msecs=0; //erm.
|
||||||
|
|
||||||
msecstouse = (int)msecs; //casts round down.
|
msecstouse = (int)msecs; //casts round down.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue