From f52e2502a429d8055865cde7cb7ef006fdd66055 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sat, 23 Feb 2013 14:57:45 -0500 Subject: [PATCH] Make these debug prints more useful (actually show the notif name!) --- qcsrc/common/notifications.qc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index e9c0e8ebc..7912fbaac 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -230,22 +230,22 @@ void Local_Notification(float net_type, float net_name, ...count) { backtrace(sprintf( strcat( - "Not enough arguments for Local_Notification! ", + "Not enough arguments for Local_Notification(%d, %s, ...)! ", "stringcount(%d) + floatcount(%d) > count(%d)\n", "Check the definition and function call for accuracy...?\n" ), - notif.nent_stringcount, notif.nent_floatcount, count)); + net_type, notif.nent_name, notif.nent_stringcount, notif.nent_floatcount, count)); return; } else if((notif.nent_stringcount + notif.nent_floatcount) < count) { backtrace(sprintf( strcat( - "Too many arguments for Local_Notification! ", + "Too many arguments for Local_Notification(%d, %s, ...)! ", "stringcount(%d) + floatcount(%d) < count(%d)\n", "Check the definition and function call for accuracy...?\n" ), - notif.nent_stringcount, notif.nent_floatcount, count)); + net_type, notif.nent_name, notif.nent_stringcount, notif.nent_floatcount, count)); return; } @@ -557,22 +557,22 @@ void Send_Notification(float broadcast, entity client, { backtrace(sprintf( strcat( - "Not enough arguments for Send_Notification! ", + "Not enough arguments for Send_Notification(%d, %d, %s, ...)! ", "stringcount(%d) + floatcount(%d) > count(%d)\n", "Check the definition and function call for accuracy...?\n" ), - notif.nent_stringcount, notif.nent_floatcount, count)); + broadcast, net_type, notif.nent_name, notif.nent_stringcount, notif.nent_floatcount, count)); return; } else if((notif.nent_stringcount + notif.nent_floatcount) < count) { backtrace(sprintf( strcat( - "Too many arguments for Send_Notification! ", + "Too many arguments for Send_Notification(%d, %d, %s, ...)! ", "stringcount(%d) + floatcount(%d) < count(%d)\n", "Check the definition and function call for accuracy...?\n" ), - notif.nent_stringcount, notif.nent_floatcount, count)); + broadcast, net_type, notif.nent_name, notif.nent_stringcount, notif.nent_floatcount, count)); return; } -- 2.39.2