]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
also accumulate impulses when receiving multiple packets per server frame
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Feb 2006 06:04:51 +0000 (06:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Feb 2006 06:04:51 +0000 (06:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5986 d7cf8633-e32d-0410-b094-e92efae38249

sv_user.c

index 2525785abb91d432e9f601a18e815d85fd633e60..6bdd8ba9d90eca5d987d6bc8e437fadbbfa504ff 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -649,7 +649,9 @@ void SV_ReadClientMove (void)
        if (msg_badread) Con_Printf("SV_ReadClientMessage: badread at %s:%i\n", __FILE__, __LINE__);
 
        // read impulse
-       move->impulse = MSG_ReadByte ();
+       i = MSG_ReadByte ();
+       if (i)
+               move->impulse = i;
        if (msg_badread) Con_Printf("SV_ReadClientMessage: badread at %s:%i\n", __FILE__, __LINE__);
 
        // PRYDON_CLIENTCURSOR