]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix small bug with names above players sometimes stuck on a intermediate alpha value...
authorterencehill <piuntn@gmail.com>
Sun, 24 Jan 2021 17:18:53 +0000 (18:18 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 24 Jan 2021 17:18:53 +0000 (18:18 +0100)
qcsrc/client/shownames.qc

index 10e636b557686a21993a9cf7a4261df4fb27a5ef..e642fa04ae085655cac9de2925ed382db356dad6 100644 (file)
@@ -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);
        }