From 5120cfe61ad104868ea0e42e447161abc6118de5 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Wed, 6 Mar 2013 17:50:08 -0500 Subject: [PATCH] Whoops, allow disabled notifications to be handled properly --- qcsrc/common/notifications.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 2c25d97dd..0ac80e3f1 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -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) { -- 2.39.2