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 4905a8f..c690210 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");