]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix some errors and add restartnotifs to commands.cfg
authorSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 21:58:59 +0000 (16:58 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 21:58:59 +0000 (16:58 -0500)
commands.cfg
qcsrc/common/notifications.qc

index 769e52de7cda79625e1da842b66bcdabb49a12cf..19bcc8bbc6e6b16a68531009e47add0220e5de11 100644 (file)
@@ -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
index e9b0c210ef3b3c71f17923806ca275db93db65b7..7cdbeb093719f5ff03f7434deb184990a9d5a9cb 100644 (file)
@@ -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(