]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Whoops, allow disabled notifications to be handled properly
authorSamual Lenks <samual@xonotic.org>
Wed, 6 Mar 2013 22:50:08 +0000 (17:50 -0500)
committerSamual Lenks <samual@xonotic.org>
Wed, 6 Mar 2013 22:50:08 +0000 (17:50 -0500)
qcsrc/common/notifications.qc

index 2c25d97ddc30cfb1f219f0c02505ca739e207ee3..0ac80e3f15c77105e3def9befd62e3b615510b5d 100644 (file)
@@ -860,18 +860,17 @@ void Local_Notification(float net_type, float net_name, ...count)
 
        entity notif = Get_Notif_Ent(net_type, net_name);
        if not(notif) { backtrace("Local_Notification: Could not find notification entity!\n"); return; }
-
-       #ifdef NOTIFICATIONS_DEBUG
        if not(notif.nent_enabled)
        {
+               #ifdef NOTIFICATIONS_DEBUG
                dprint(sprintf(
                        "Local_Notification(%s, %s): Entity was disabled...\n",
                        Get_Notif_TypeName(net_type),
                        notif.nent_name
                ));
+               #endif
                return;
        }
-       #endif
        
        if((notif.nent_stringcount + notif.nent_floatcount) > count)
        {