]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
World chat != spectator chat
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 31 Mar 2016 12:04:36 +0000 (23:04 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 31 Mar 2016 12:04:36 +0000 (23:04 +1100)
qcsrc/server/cl_player.qc

index baa5e98df85d65218e40d275e28b84527009e5dd..ed6291cdb92521024c9d5966380ff84f871061eb 100644 (file)
@@ -857,8 +857,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
                sourcecmsgstr = cmsgstr;
        }
 
-       if(!privatesay)
-       if (!IS_PLAYER(source))
+       if (!privatesay && source && !IS_PLAYER(source))
        {
                if (!intermission_running)
                        if(teamsay || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !(warmup_stage || gameover)))