From: terencehill Date: Mon, 25 Jan 2021 13:34:17 +0000 (+0100) Subject: Fix multiple bugs in hud_shownames_antioverlap, it was unintentionally hiding player... X-Git-Tag: xonotic-v0.8.5~559^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f91879552b6878c4a3b900416c9fb63531d6cce8;p=xonotic%2Fxonotic-data.pk3dir.git Fix multiple bugs in hud_shownames_antioverlap, it was unintentionally hiding player names too much --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index e642fa04a..ccf3176e7 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -55,7 +55,7 @@ void Draw_ShowNames(entity this) } else { - traceline(view_origin, this.origin, MOVE_NORMAL, this); + traceline(view_origin, this.origin, MOVE_NOMONSTERS, this); hit = !(trace_fraction < 1 && (trace_networkentity != this.sv_entnum && trace_ent.entnum != this.sv_entnum)); } // handle tag fading @@ -81,9 +81,9 @@ void Draw_ShowNames(entity this) entity entcs = NULL; LL_EACH(shownames_ent, it != this, { entcs = entcs_receiver(i); - if (!(entcs && entcs.has_sv_origin)) + if (!(entcs && entcs.has_origin)) continue; - vector eo = project_3d_to_2d(it.origin); + vector eo = project_3d_to_2d(it.origin + eZ * autocvar_hud_shownames_offset); if (OFF_SCREEN(eo)) continue; eo.z = 0; if (vdist((vec2(o) - eo), <, autocvar_hud_shownames_antioverlap_distance)