]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix condition for displaying g_chat_nospectators warning (warmup_stage is initially...
authorterencehill <piuntn@gmail.com>
Sun, 9 Aug 2015 09:30:17 +0000 (11:30 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 9 Aug 2015 09:48:24 +0000 (11:48 +0200)
qcsrc/server/cl_client.qc

index 8ca2f6c35f8771d2b58995bed78c0ca9442ec49a..8867afb316a695f26cb96372a097e8ee75e03c75 100644 (file)
@@ -226,7 +226,8 @@ void PutObserverInServer (void)
        if(self.killcount != -666)
        {
                Send_Notification(NOTIF_ALL, world, MSG_INFO, INFO_QUIT_SPECTATE, self.netname);
-               if(autocvar_g_chat_nospectators == 1 || (cvar("g_warmup") && !(warmup_stage || gameover) && autocvar_g_chat_nospectators == 2))
+               if(!intermission_running)
+               if(autocvar_g_chat_nospectators == 1 || (!(warmup_stage || gameover) && autocvar_g_chat_nospectators == 2))
                        Send_Notification(NOTIF_ONE_ONLY, self, MSG_INFO, INFO_CHAT_NOSPECTATORS);
 
                if(self.just_joined == false) {