From e1059360b46e2c4ee50394441a696a5af8b285e4 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 21 Dec 2009 12:44:14 +0000 Subject: [PATCH] fix movement loss tracking git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9631 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 2 +- sv_user.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index 635882da..ece15660 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -2764,7 +2764,7 @@ void Host_Pings_f (void) void Host_PingPLReport_f(void) { - char **errbyte; + char *errbyte; int i; int l = Cmd_Argc(); if (l > cl.maxclients) diff --git a/sv_user.c b/sv_user.c index b545b8b9..2ca62d7e 100644 --- a/sv_user.c +++ b/sv_user.c @@ -553,8 +553,8 @@ void SV_ReadClientMove (void) if(host_client->movement_highestsequence_seen) { // mark moves in between as lost - if(move->sequence - host_client->movement_highestsequence_seen < NETGRAPH_PACKETS) - for(i = host_client->movement_highestsequence_seen; i < move->sequence; ++i) + if(move->sequence - host_client->movement_highestsequence_seen - 1 < NETGRAPH_PACKETS) + for(i = host_client->movement_highestsequence_seen + 1; i < move->sequence; ++i) host_client->movement_count[i % NETGRAPH_PACKETS] = -1; else memset(host_client->movement_count, -1, sizeof(host_client->movement_count)); -- 2.39.2