]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Wait, don't just kill ALL notifications of the same type... durr!
authorSamual Lenks <samual@xonotic.org>
Wed, 27 Feb 2013 04:57:48 +0000 (23:57 -0500)
committerSamual Lenks <samual@xonotic.org>
Wed, 27 Feb 2013 04:57:48 +0000 (23:57 -0500)
qcsrc/common/notifications.qc

index 1fc3a052147027085ff0db9f5af0efb9203a86a3..6917821da0c57ba43d97cbc0112e18e5444813f4 100644 (file)
@@ -626,8 +626,12 @@ void Kill_Notification(float broadcast, entity client, float net_type, float net
                // now kill the old send notification entity
                if(notif.nent_net_type == net_type)
                {
+                       if(net_name)
+                               { if(notif.nent_net_name == net_name) { notif.think(); } }
+                       else
+                               { notif.think(); }
+                               
                        print(sprintf("killed '%s'\n", notif.classname));
-                       notif.think();
                }
        }
 }