]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix pl% calculation for QW servers (was using [i] instead of [j])
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2007 17:22:47 +0000 (17:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Apr 2007 17:22:47 +0000 (17:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7215 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index abe2229824afa64931c348f2cb234fa3018073a7..10837bd89fa80f20370948176365f08c09a7d6df 100644 (file)
@@ -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);