From 66d1331d0983af6c7c4239574a17db82fa2c92b6 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 30 Apr 2007 17:22:47 +0000 Subject: [PATCH] fix pl% calculation for QW servers (was using [i] instead of [j]) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7215 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_input.c b/cl_input.c index abe22298..10837bd8 100644 --- a/cl_input.c +++ b/cl_input.c @@ -1439,7 +1439,7 @@ void CL_SendMove(void) MSG_WriteByte(&buf, 0); // packet loss percentage for (j = 0, packetloss = 0;j < NETGRAPH_PACKETS;j++) - if (cls.netcon->incoming_unreliablesize[i] == NETGRAPH_LOSTPACKET) + if (cls.netcon->incoming_unreliablesize[j] == NETGRAPH_LOSTPACKET) packetloss++; packetloss = packetloss * 100 / NETGRAPH_PACKETS; MSG_WriteByte(&buf, packetloss); -- 2.39.2