From: divverent Date: Mon, 21 Dec 2009 12:44:14 +0000 (+0000) Subject: fix movement loss tracking X-Git-Tag: xonotic-v0.1.0preview~1017 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=e1059360b46e2c4ee50394441a696a5af8b285e4;p=xonotic%2Fdarkplaces.git fix movement loss tracking git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9631 d7cf8633-e32d-0410-b094-e92efae38249 --- 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));