From 43436b6008b5a3bc82d6feca172ab8e34c6fea9a Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 24 Jan 2021 18:18:53 +0100 Subject: [PATCH] Fix small bug with names above players sometimes stuck on a intermediate alpha value for a very short time --- qcsrc/client/shownames.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 10e636b55..e642fa04a 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -112,7 +112,7 @@ void Draw_ShowNames(entity this) { this.alpha = min(1, this.alpha + SHOWNAMES_FADESPEED * frametime); } - else if (time > this.fadedelay) // fade in for enemies + else if (time > this.fadedelay || this.alpha > 0) // fade in for enemies { this.alpha = min(1, this.alpha + SHOWNAMES_FADESPEED * frametime); } -- 2.39.2