]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
fix pl% calculation for QW servers (was using [i] instead of [j])
[xonotic/darkplaces.git] / 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);