]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the real player entity for shownames self checks (fixes player name appearing...
authorMario <mario@smbclan.net>
Tue, 12 Jul 2016 12:42:05 +0000 (22:42 +1000)
committerMario <mario@smbclan.net>
Tue, 12 Jul 2016 12:42:05 +0000 (22:42 +1000)
qcsrc/client/shownames.qc

index 6700ba61c7b87cadfee0438093ffdf46a2d5ee7e..165b033fb3558c8197e6e758b4dd4b39f3156f4e 100644 (file)
@@ -34,7 +34,7 @@ const float SHOWNAMES_FADESPEED = 4;
 const float SHOWNAMES_FADEDELAY = 0.4;
 void Draw_ShowNames(entity this)
 {
-       if (this.sv_entnum == player_localentnum)  // self or spectatee
+       if (this.sv_entnum == (current_player + 1))  // self or spectatee
                if (!(autocvar_hud_shownames_self && autocvar_chase_active)) return;
        if (!this.sameteam && !autocvar_hud_shownames_enemies) return;
        bool hit;