From: Samual Lenks Date: Wed, 6 Mar 2013 22:50:08 +0000 (-0500) Subject: Whoops, allow disabled notifications to be handled properly X-Git-Tag: xonotic-v0.7.0~62^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5120cfe61ad104868ea0e42e447161abc6118de5;p=xonotic%2Fxonotic-data.pk3dir.git Whoops, allow disabled notifications to be handled properly --- 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) {