]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix names above players not following dead players while fading out
authorterencehill <piuntn@gmail.com>
Sat, 16 May 2020 21:00:28 +0000 (23:00 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 16 May 2020 21:00:28 +0000 (23:00 +0200)
qcsrc/client/shownames.qc

index 74136906e4c6a955c1bace120df660ea08dcdc68..d8cc3ee81ff7272a4ec22cb27445308ce4133f9a 100644 (file)
@@ -216,7 +216,8 @@ void Draw_ShowNames_All()
                        it.sameteam = false;
                }
                bool dead = entcs_IsDead(i) || entcs_IsSpectating(i);
-               if (!it.csqcmodel_isdead) setorigin(it, entcs.origin);
+               if (!it.csqcmodel_isdead || it.alpha > 0)
+                       setorigin(it, entcs.origin);
                it.csqcmodel_isdead = dead;
                Draw_ShowNames(it);
        });