]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
distance culling doesn't want to work for some reason... leaving it commented still
authorFruitieX <fruitiex@gmail.com>
Wed, 13 Apr 2011 13:42:57 +0000 (16:42 +0300)
committerFruitieX <fruitiex@gmail.com>
Wed, 13 Apr 2011 13:42:57 +0000 (16:42 +0300)
qcsrc/server/cl_player.qc

index 5864098065619cdcc231c1f89639dfe5ba79c0da..6c662cf5c58091ce5e0bef942907b217f88bebab 100644 (file)
@@ -777,9 +777,8 @@ void shownames_think()
 
 float shownames_customize()
 {
-   // return TRUE;
-    //if(vlen(other.origin - self.origin) < autocvar_sv_shownames_cull_distance)
     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)))
         return TRUE;