1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2004-11-20 01:20:28 +00:00
parent 72c3b0e8b2
commit 91f0bd860c

View file

@ -590,7 +590,7 @@ void CLNQ_SendMove (usercmd_t *cmd, int pnum)
{
in_nextimpulse[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
MSG_WriteByte (&buf, 0);
@ -792,6 +792,8 @@ void CL_SendCmd (void)
if (msecs>1000) //come on... That's just stupid.
msecs=255;
if (msecs<0)
msecs=0; //erm.
msecstouse = (int)msecs; //casts round down.