From 5a13189621f6a615dc7d0e79420907bf64b63ebb Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 15 Feb 2006 06:04:51 +0000 Subject: [PATCH] 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 --- sv_user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2