X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fnotifications%2Fall.qc;h=ad2013dfa5b9d214128165e81281e345b868b668;hb=d271f27a5ac351a3a7b39636932f6d661492be1d;hp=e52e9de0971f10c73ec9e42685a52d541df465a3;hpb=9f70bdba9a6fb2c06324be13504341da967f7028;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/notifications/all.qc b/qcsrc/common/notifications/all.qc index e52e9de09..ad2013dfa 100644 --- a/qcsrc/common/notifications/all.qc +++ b/qcsrc/common/notifications/all.qc @@ -1548,6 +1548,7 @@ void Send_Notification( MSG net_type, Notification net_name, ...count) { + 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), @@ -1681,8 +1682,7 @@ void Send_Notification( } else { - entity net_notif = new(net_notification); - make_pure(net_notif); + entity net_notif = new_pure(net_notification); net_notif.owner = notif; net_notif.nent_broadcast = broadcast; net_notif.nent_client = client;