From: Mario Date: Sun, 21 Aug 2016 08:11:15 +0000 (+1000) Subject: Minor cleanup X-Git-Tag: xonotic-v0.8.2~687^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d077832ac298a47063bc6e352def59084e79dfd4;p=xonotic%2Fxonotic-data.pk3dir.git Minor cleanup --- diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index 1dec53be6..65cdd83d3 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -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")); } /**