]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'contributing' into 'master'
authorMario <zacjardine@y7mail.com>
Sun, 13 May 2018 02:18:09 +0000 (02:18 +0000)
committerMario <zacjardine@y7mail.com>
Sun, 13 May 2018 02:18:09 +0000 (02:18 +0000)
Fix bug with PM (tell command) between spectators

See merge request xonotic/xonotic-data.pk3dir!557

qcsrc/server/player.qc

index 06bdb1428f869439244afd76f9e836eef8000945..2fcd3016395bf1492bfe209242392909a1a816c8 100644 (file)
@@ -969,7 +969,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
        if (privatesay && source && !IS_PLAYER(source))
        {
                if (!game_stopped)
-               if ((privatesay && !IS_PLAYER(privatesay)) || (autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage))
+               if ((privatesay && IS_PLAYER(privatesay)) && ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage)))
                        ret = -1; // just hide the message completely
        }