When net_type is MSG_CENTER and net_name is 0, still check entity net_type
authorSamual Lenks <samual@xonotic.org>
Fri, 26 Apr 2013 00:02:07 +0000 (20:02 -0400)
committerSamual Lenks <samual@xonotic.org>
Fri, 26 Apr 2013 00:02:07 +0000 (20:02 -0400)
qcsrc/common/notifications.qc

index cf495153efec43c88f8a4ed6d47ce630cf701742..7d8dfc382ecdecd0ceb0941bc05056caf76f8998 100644 (file)
@@ -1265,7 +1265,7 @@ void Kill_Notification(
        {
                if(net_type)
                {
-                       if(killed_cpid != NO_CPID)
+                       if((killed_cpid != NO_CPID) && (notif.nent_net_type == MSG_CENTER))
                        {
                                if(notif.owner.nent_cpid == killed_cpid)
                                {