From: Rudolf Polzer Date: Sat, 14 May 2011 18:10:52 +0000 (+0200) Subject: add another check X-Git-Tag: xonotic-v0.5.0~256^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f2b8d932faaf589f8dffda417cc2bf4770fa6e0;p=xonotic%2Fxonotic-data.pk3dir.git add another check --- diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index c169e6c0e..c3f7d6bda 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -767,7 +767,8 @@ vector getplayerorigin(float pl) e = entcs_receiver[pl]; if(e.classname == "entcs_receiver") - return e.origin; + if(e.sv_entnum == pl) + return e.origin; return GETPLAYERORIGIN_ERROR; }