From: dresk Date: Fri, 10 Aug 2007 05:40:24 +0000 (+0000) Subject: Added "pl" to the list of available keys to the CSQC function getplayerkey. "pl... X-Git-Tag: xonotic-v0.1.0preview~2956 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8d6a2d43090c766af7421920806926e980f5e714;p=xonotic%2Fdarkplaces.git Added "pl" to the list of available keys to the CSQC function getplayerkey. "pl" returns the player's packetloss, as reported by the engine. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7510 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 268222d1..d555274c 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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);