From: havoc Date: Wed, 15 Feb 2006 06:04:51 +0000 (+0000) Subject: also accumulate impulses when receiving multiple packets per server frame X-Git-Tag: xonotic-v0.1.0preview~4325 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5a13189621f6a615dc7d0e79420907bf64b63ebb;p=xonotic%2Fdarkplaces.git also accumulate impulses when receiving multiple packets per server frame git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5986 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_user.c b/sv_user.c index 2525785a..6bdd8ba9 100644 --- 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