]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
only send players' name tags
authorFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 17:56:12 +0000 (20:56 +0300)
committerFruitieX <fruitiex@gmail.com>
Sat, 16 Apr 2011 17:56:12 +0000 (20:56 +0300)
qcsrc/server/cl_player.qc

index 67e9dfd3016cc44ff83f8feff94fd1492357ed60..ef3c67db17cad4b36df6450c1ce72832041c890e 100644 (file)
@@ -777,6 +777,7 @@ void shownames_think()
 
 float shownames_customize()
 {
+    if(self.owner.classname == "player") // only send players, no spectators!
     if(self.owner != other) // no need to spam own coordinates
     if(vlen(other.origin - self.origin) < autocvar_sv_shownames_cull_distance) // distance cull
     if(self.owner.team == other.team || (self.owner.team != other.team && checkpvs(self.origin, other)))