]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bug with PM (tell command) between spectators 557/head
authorSlava Bacherikov <slava@bacher09.org>
Sat, 12 May 2018 17:46:45 +0000 (20:46 +0300)
committerSlava Bacherikov <slava@bacher09.org>
Sat, 12 May 2018 18:02:37 +0000 (21:02 +0300)
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
        }