From dad6065d72f70dc5866384050ece0d36b249bf64 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 18 May 2020 23:55:13 +0200 Subject: [PATCH] Fix name above dead players not starting to fade out from the current player's alpha (what the FIXME comment I removed was stating is no longer true) --- qcsrc/client/shownames.qc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 20526d2c3f..c2fc8a8063 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -119,14 +119,12 @@ void Draw_ShowNames(entity this) this.alpha = min(1, this.alpha + SHOWNAMES_FADESPEED * frametime); } float a = autocvar_hud_shownames_alpha * this.alpha; - // multiply by player alpha if (!this.sameteam || (this.sv_entnum == player_localentnum)) { float f = entcs_GetAlpha(this.sv_entnum - 1); if (f == 0) f = 1; if (f < 0) f = 0; - // FIXME: alpha is negative when dead, breaking death fade - if (!this.csqcmodel_isdead) a *= f; + a *= f; } if (a < ALPHA_MIN_VISIBLE && ISGAMETYPE(CTS)) return; if (vdist(this.origin - view_origin, >=, max_shot_distance)) return; -- 2.39.2