From 6d2843dd09cefde02a3b1d5298ccfece7827703c Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Wed, 27 Feb 2013 16:12:39 -0500 Subject: [PATCH] Debugging motd --- qcsrc/common/notifications.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index a2a7c97efb..1fb798d1a1 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -225,7 +225,7 @@ string Local_Notification_sprintf(string input, string args, sprintf("Local_Notification_sprintf('%s^7', '%s', %s, %s);\n", strreplace("\n", "\\n", input), args, - sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4), + strreplace("\n", "\\n", sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4)), sprintf("%d, %d, %d, %d", f1, f2, f3, f4) ) ); @@ -312,6 +312,7 @@ void Local_Notification_centerprint_generic(string input, string durcnt, float c } } } + print(sprintf("locnotecengen: %f, %f\n", stof(arg_slot[0]), stof(arg_slot[1]))); centerprint_generic(cpid, input, stof(arg_slot[0]), stof(arg_slot[1])); } #endif @@ -366,7 +367,7 @@ void Local_Notification(float net_type, float net_name, ...count) sprintf("Local_Notification(%s, %s, %s, %s);\n", Get_Notif_TypeName(net_type), notif.nent_name, - sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4), + strreplace("\n", "\\n", sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4)), sprintf("%d, %d, %d, %d", f1, f2, f3, f4) ) ); @@ -696,7 +697,7 @@ void Send_Notification(float broadcast, entity client, broadcast, Get_Notif_TypeName(net_type), notif.nent_name, - sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4), + strreplace("\n", "\\n", sprintf("'%s^7', '%s^7', '%s^7', '%s^7'", s1, s2, s3, s4)), sprintf("%d, %d, %d, %d", f1, f2, f3, f4), notif.nent_stringcount, notif.nent_floatcount ) -- 2.39.2