From: Samual Lenks Date: Sat, 2 Mar 2013 22:00:30 +0000 (-0500) Subject: Better debugs X-Git-Tag: xonotic-v0.7.0~62^2~23^2~39 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3ed67766a199f7e0b04222593fe1da58d5f4ec49;p=xonotic%2Fxonotic-data.pk3dir.git Better debugs --- 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 ));