From 3ed67766a199f7e0b04222593fe1da58d5f4ec49 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sat, 2 Mar 2013 17:00:30 -0500 Subject: [PATCH] Better debugs --- qcsrc/common/notifications.qc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index cc87cb72e..6ed784a0c 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -9,6 +9,7 @@ string Get_Notif_TypeName(float net_type) { case MSG_INFO: return "MSG_INFO"; case MSG_CENTER: return "MSG_CENTER"; + case MSG_CENTER_CPID: return "MSG_CENTER_CPID"; case MSG_MULTI: return "MSG_MULTI"; } backtrace(sprintf("Get_Notif_TypeName(%d): Improper net type!\n", net_type)); @@ -1015,6 +1016,16 @@ void Read_Notification(float is_new) if(net_type == MSG_CENTER_CPID) { + #ifdef NOTIFICATIONS_DEBUG + dprint(sprintf( + "Read_Notification(%d) at %f: net_type = %s, net_name = %d\n", + is_new, + time, + Get_Notif_TypeName(net_type), + net_name + )); + #endif + if(is_new) { if(net_name == 0) { reset_centerprint_messages(); } @@ -1070,8 +1081,8 @@ void Net_Notification_Remove() #ifdef NOTIFICATIONS_DEBUG dprint(sprintf( "Net_Notification_Remove() at %f: %s '%s - %s' notification\n", - ((self.nent_net_name == -1) ? "Killed" : "Removed"), time, + ((self.nent_net_name == -1) ? "Killed" : "Removed"), Get_Notif_TypeName(self.nent_net_type), self.owner.nent_name )); -- 2.39.2