]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/shownames.qc
remove entity spam from shownames
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / shownames.qc
index 82fa05e098308f487ccd8680a9bda2082783d52d..c467ea6873cbdba95687c7a8dcafa66068b8988c 100644 (file)
@@ -10,12 +10,12 @@ void Draw_ShowNames()
     if(!autocvar_hud_shownames)
         return;
 
-    if(self.the_entnum == player_localentnum && !autocvar_chase_active)
+    if(self.sv_entnum == player_localentnum && !autocvar_chase_active)
         return;
 
     if(self.sameteam || (!self.sameteam && autocvar_hud_shownames_enemies))
     {
-        self.origin = getplayerorigin(self.the_entnum-1);
+        self.origin = getplayerorigin(self.sv_entnum-1);
         self.origin_z += autocvar_hud_shownames_offset;
 
         if(!self.sameteam)
@@ -127,9 +127,9 @@ void Draw_ShowNames()
             }
 
             string s;
-            s = GetPlayerName(self.the_entnum-1);
+            s = GetPlayerName(self.sv_entnum-1);
             if((autocvar_hud_shownames_decolorize == 1 && teamplay) || autocvar_hud_shownames_decolorize == 2)
-                s = playername(s, GetPlayerColor(self.the_entnum-1));
+                s = playername(s, GetPlayerColor(self.sv_entnum-1));
 
             drawfontscale = '1 1 0' * resize;
             s = textShortenToWidth(s, namewidth, '1 1 0' * autocvar_hud_shownames_fontsize, stringwidth_colors);