From: Samual Lenks Date: Sun, 3 Mar 2013 21:58:59 +0000 (-0500) Subject: Fix some errors and add restartnotifs to commands.cfg X-Git-Tag: xonotic-v0.7.0~62^2~23^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ba8bbc5661c6f732f6022ca7e38a19d0b431b6c;p=xonotic%2Fxonotic-data.pk3dir.git Fix some errors and add restartnotifs to commands.cfg --- 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(