]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix NOTIF_ALL notifications
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 15 Mar 2016 10:58:33 +0000 (21:58 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 15 Mar 2016 10:58:33 +0000 (21:58 +1100)
qcsrc/common/notifications/all.qc

index 60fd625992b8de78200b6bf3fea00ee868a664c8..ad2013dfa5b9d214128165e81281e345b868b668 100644 (file)
@@ -1548,7 +1548,7 @@ void Send_Notification(
        MSG net_type, Notification net_name,
        ...count)
 {
-    if (!IS_REAL_CLIENT(client)) return;
+    if (broadcast != NOTIF_ALL && broadcast != NOTIF_ALL_EXCEPT && !IS_REAL_CLIENT(client)) return;
        entity notif = net_name;
        string parms = sprintf("%s, '%s', %s, %s",
                Get_Notif_BroadcastName(broadcast),