]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
if intermission is active, spectators should be able to talk even if g_chat_nospectat...
authorSamual <samual@xonotic.org>
Tue, 10 Jan 2012 21:34:03 +0000 (16:34 -0500)
committerSamual <samual@xonotic.org>
Tue, 10 Jan 2012 21:34:03 +0000 (16:34 -0500)
qcsrc/server/cl_player.qc

index 8065d7f4db53f61ab64d55f27a84ddee0880196a..0287fc153a9c9b4cbc9d4d2d967026aa580ac52c 100644 (file)
@@ -979,8 +979,9 @@ float Say(entity source, float teamsay, entity privatesay, string msgin, float f
        if(!privatesay)
        if(source.classname != "player")
        {
-               if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !inWarmupStage))
-                       teamsay = -1; // spectators
+               if not(intermission_running)
+                       if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !inWarmupStage))
+                               teamsay = -1; // spectators
        }
 
        if(flood)