]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add another check
authorRudolf Polzer <divverent@xonotic.org>
Sat, 14 May 2011 18:10:52 +0000 (20:10 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 14 May 2011 18:10:52 +0000 (20:10 +0200)
qcsrc/client/miscfunctions.qc

index c169e6c0e90ba5fa63dbe8518ef73b453a3f88e8..c3f7d6bda9c3a33ae81ea6e44962c800fbc2f270 100644 (file)
@@ -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;
 }