]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor cleanup 360/head
authorMario <mario@smbclan.net>
Sun, 21 Aug 2016 08:11:15 +0000 (18:11 +1000)
committerMario <mario@smbclan.net>
Sun, 21 Aug 2016 08:11:15 +0000 (18:11 +1000)
qcsrc/common/ent_cs.qh

index 1dec53be65e2434a33779b62d1190f5df0f621fa..65cdd83d3a71f4f5df325a8e90b727d936cb1300 100644 (file)
@@ -109,7 +109,7 @@ REGISTER_NET_TEMP(CLIENT_ENTCS)
        string entcs_GetName(int i)
        {
                entity e = entcs_receiver(i);
-               return e ? ColorTranslateRGB(e.netname) : ColorTranslateRGB(getplayerkeyvalue(i, "name"));
+               return ColorTranslateRGB(e ? e.netname : getplayerkeyvalue(i, "name"));
        }
 
     /**