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 2525785..6bdd8ba 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