From 6ba8bbc5661c6f732f6022ca7e38a19d0b431b6c Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sun, 3 Mar 2013 16:58:59 -0500 Subject: [PATCH] Fix some errors and add restartnotifs to commands.cfg --- commands.cfg | 1 + qcsrc/common/notifications.qc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands.cfg b/commands.cfg index 769e52de7..19bcc8bbc 100644 --- a/commands.cfg +++ b/commands.cfg @@ -62,6 +62,7 @@ alias maplist "qc_cmd_svmenu maplist ${* ?}" // Automa alias nextframe "qc_cmd_svmenu nextframe ${* ?}" // Execute the given command next frame of this VM alias qc_curl "qc_cmd_svmenu qc_curl ${* ?}" // Queries a URL alias removefromlist "qc_cmd_svmenu removefromlist ${* ?}" // Remove a string from a cvar +alias restartnotifs "qc_cmd_svcl restartnotifs ${* ?}" // Re-initialize all notifications alias rpn "qc_cmd_svmenu rpn ${* ?}" // RPN calculator //alias settemp "qc_cmd_svmenu settemp ${* ?}" // Temporarily set a value to a cvar which is restored later //alias settemp_restore "qc_cmd_svmenu settemp_restore ${* ?}" // Restore all cvars set by settemp command diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index e9b0c210e..7cdbeb093 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -1037,7 +1037,7 @@ void Read_Notification(float is_new) } else { - print(sprintf( + backtrace(sprintf( "Read_Notification(%d) at %f: ^1TRIED TO KILL NO_CPID CENTERPRINT!\n", is_new, time @@ -1085,7 +1085,7 @@ void Read_Notification(float is_new) #ifdef SVQC void Net_Notification_Remove() { - if not(self) { dprint(sprintf("Net_Notification_Remove() at %f: Missing self!?\n", time)); return; } + if not(self) { backtrace(sprintf("Net_Notification_Remove() at %f: Missing self!?\n", time)); return; } #ifdef NOTIFICATIONS_DEBUG dprint(sprintf( -- 2.39.2