From eb4ba64882865ed0e70d3204e80c8f33cb1bc260 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 24 Dec 2009 08:30:07 +0000 Subject: [PATCH] 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 --- sv_user.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.2