]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Added "pl" to the list of available keys to the CSQC function getplayerkey. "pl...
authordresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Aug 2007 05:40:24 +0000 (05:40 +0000)
committerdresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Aug 2007 05:40:24 +0000 (05:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7510 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index 268222d127c9f647a715fb93c002b78f1c7418f5..d555274c91db33d6eeeed4f4a15bef145b3fb490 100644 (file)
@@ -1059,6 +1059,9 @@ static void VM_CL_getplayerkey (void)
        else
                if(!strcasecmp(c, "ping"))
                        sprintf(t, "%i", cl.scores[i].qw_ping);
+       else
+               if(!strcasecmp(c, "pl"))
+                       sprintf(t, "%i", cl.scores[i].qw_packetloss);
        else
                if(!strcasecmp(c, "entertime"))
                        sprintf(t, "%f", cl.scores[i].qw_entertime);