]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
do NOT call cvar() again, do it right
authorRudolf Polzer <divverent@alientrap.org>
Thu, 9 Dec 2010 21:51:04 +0000 (22:51 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 9 Dec 2010 21:51:04 +0000 (22:51 +0100)
qcsrc/server/teamplay.qc

index 4905a8f8d91cc0ebfcb0ca194402561603c9f3bc..c690210d8359cf782ed01680ffba3e661d17070f 100644 (file)
@@ -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");