]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sv_vote_nospectators, sv_chat_nospectators: treat warmup and gameover state the same.
authorRudolf Polzer <divverent@xonotic.org>
Fri, 30 Mar 2012 13:01:37 +0000 (15:01 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 30 Mar 2012 13:01:37 +0000 (15:01 +0200)
qcsrc/server/cl_player.qc
qcsrc/server/command/vote.qc

index 5a162742387c471883838d67a24a478e21357786..334474966e2cf0a431154545e37953048c74e5d1 100644 (file)
@@ -979,7 +979,7 @@ float Say(entity source, float teamsay, entity privatesay, string msgin, float f
        if(source.classname != "player")
        {
                if not(intermission_running)
-                       if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !inWarmupStage))
+                       if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !(inWarmupStage || gameover)))
                                teamsay = -1; // spectators
        }
 
index 4cd4f11569144ef63bed3ae7a0db04c0803f5817..1e43564001d58957a7fafb6c278a8672e7af067d 100644 (file)
@@ -191,7 +191,7 @@ void VoteCount(float first_count)
        vote_accept_count = vote_reject_count = vote_abstain_count = 0;
        
        float spectators_allowed = ((autocvar_sv_vote_nospectators != 2) 
-                               || ((autocvar_sv_vote_nospectators == 1) && inWarmupStage) 
+                               || ((autocvar_sv_vote_nospectators == 1) && (inWarmupStage || gameover))
                                || (autocvar_sv_vote_nospectators == 0));
                                
        float vote_player_count, is_player, notvoters;
@@ -997,4 +997,4 @@ void VoteCommand(float request, entity caller, float argc, string vote_command)
                        return;
                }
        }
-}
\ No newline at end of file
+}