From: Mattia Basaglia Date: Tue, 24 Mar 2015 09:44:37 +0000 (+0100) Subject: Change client checks X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8771d8ddffbc16fdc7a75060ef1699e5a2c99a1;p=xonotic%2Fxonotic-data.pk3dir.git Change client checks --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 84e91009c..2ffb374eb 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -945,14 +945,14 @@ void IRCSay(string msgstr) msgstr = strcat("\{1}", strreplace("\n", " ", msgstr), "\n"); // newlines only are good for centerprint entity head; - FOR_EACH_REALCLIENT(head) + FOR_EACH_CLIENTSLOT(head) { if(!intermission_running) if((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !(warmup_stage || gameover))) if(IS_PLAYER(head)) continue; - - sprint(head, msgstr); + if(IS_REAL_CLIENT(head)) + sprint(head, msgstr); } }