From: terencehill Date: Sun, 9 Aug 2015 09:30:17 +0000 (+0200) Subject: Fix condition for displaying g_chat_nospectators warning (warmup_stage is initially... X-Git-Tag: xonotic-v0.8.1~17^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e68643b45502321607a5653b79179ea145d53513;p=xonotic%2Fxonotic-data.pk3dir.git Fix condition for displaying g_chat_nospectators warning (warmup_stage is initially cvar("g_warmup") but can be turned off by a mod) --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 8ca2f6c35..8867afb31 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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) {