From: Samual Lenks Date: Sat, 23 Feb 2013 19:57:45 +0000 (-0500) Subject: Make these debug prints more useful (actually show the notif name!) X-Git-Tag: xonotic-v0.7.0~62^2~23^2~159 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f52e2502a429d8055865cde7cb7ef006fdd66055;p=xonotic%2Fxonotic-data.pk3dir.git Make these debug prints more useful (actually show the notif name!) --- 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; }