From: terencehill Date: Sun, 24 Jan 2021 17:18:53 +0000 (+0100) Subject: Fix small bug with names above players sometimes stuck on a intermediate alpha value... X-Git-Tag: xonotic-v0.8.5~559^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43436b6008b5a3bc82d6feca172ab8e34c6fea9a;p=xonotic%2Fxonotic-data.pk3dir.git Fix small bug with names above players sometimes stuck on a intermediate alpha value for a very short time --- 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); }