From: divverent Date: Thu, 24 Dec 2009 08:30:07 +0000 (+0000) Subject: fix detection of timeout-based lost packets. X-Git-Tag: xonotic-v0.1.0preview~985 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb4ba64882865ed0e70d3204e80c8f33cb1bc260;p=xonotic%2Fdarkplaces.git fix detection of timeout-based lost packets. Now movementloss detection beats all test cases: - it is 0 in local games :P - when temporarily setting 100% packetloss, PL and movementloss are about equal - when permanently setting 50% packetloss, movementloss is about 25% (due to cl_netrepeatinput 1) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9663 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_user.c b/sv_user.c index eec29870..3f68714b 100644 --- a/sv_user.c +++ b/sv_user.c @@ -628,8 +628,9 @@ void SV_ExecuteClientMoves(void) // count the move as LOST if we don't // execute it but it has higher // sequence count - if(move->sequence > host_client->movesequence) - host_client->movement_count[(move->sequence) % NETGRAPH_PACKETS] = -1; + if(host_client->movesequence) + if(move->sequence > host_client->movesequence) + host_client->movement_count[(move->sequence) % NETGRAPH_PACKETS] = -1; continue; }