From: Samual Date: Tue, 10 Jan 2012 21:34:03 +0000 (-0500) Subject: if intermission is active, spectators should be able to talk even if g_chat_nospectat... X-Git-Tag: xonotic-v0.6.0~187^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71ee5248f3bc5e5fbddb4d42fb74c2e247658039;p=xonotic%2Fxonotic-data.pk3dir.git if intermission is active, spectators should be able to talk even if g_chat_nospectators is active -- the game is over, teams/spectating should not matter anymore. --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 8065d7f4d..0287fc153 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -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)