]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/shownames.qc
Add a mutator hook to indicate whether rankings should be shown
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / shownames.qc
index 87633056de69b7dbb52e5916b6447352fb3acda7..acd4bc371003009951cbafbe9235ff1fe09bde62 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common/ent_cs.qh>
 #include <common/constants.qh>
+#include <common/gamemodes/_mod.qh>
 #include <common/net_linked.qh>
 #include <common/mapinfo.qh>
 #include <common/teams.qh>
@@ -213,7 +214,7 @@ void Draw_ShowNames_All()
                        it.sameteam = false;
                }
                bool dead = entcs_IsDead(i) || entcs_IsSpectating(i);
-               if (!it.csqcmodel_isdead || it.alpha > 0)
+               if ((!it.csqcmodel_isdead || it.alpha > 0) && entcs.origin != it.origin)
                        setorigin(it, entcs.origin);
                it.csqcmodel_isdead = dead;
                Draw_ShowNames(it);