From: Rudolf Polzer Date: Thu, 9 Dec 2010 21:51:04 +0000 (+0100) Subject: do NOT call cvar() again, do it right X-Git-Tag: xonotic-v0.1.0preview~51^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6fc98cffcb5693d2d430b1eff460016d2e623d93;p=xonotic%2Fxonotic-data.pk3dir.git do NOT call cvar() again, do it right --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 4905a8f8d..c690210d8 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -517,7 +517,7 @@ void PrintWelcomeMessage(entity pl) modifications = strcat(modifications, ", No start weapons"); if(autocvar_sv_gravity < 800) modifications = strcat(modifications, ", Low gravity"); - if(cvar("g_cloaked")) + if(g_cloaked && !g_cts) modifications = strcat(modifications, ", Cloaked"); if(g_grappling_hook) modifications = strcat(modifications, ", Hook");