From 25e3eef53dac9d15abf3e8c01b443d3a7a7e56a7 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Wed, 6 Feb 2013 22:29:17 -0500 Subject: [PATCH] This doesn't need to be a function --- qcsrc/common/notifications.qc | 12 ------------ qcsrc/common/notifications.qh | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 1ce0d0bed..a27d0de1b 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -3,18 +3,6 @@ // Last updated: December, 2012 // ================================================ -// ====================== -// Supporting Functions -// ====================== - -// team code replace -string TCR(string input, string teamcolor, string teamtext) // TODO: MOVE TO UTIL.QC -{ - input = strreplace("^TC", teamcolor, input); - input = strreplace("^TT", teamtext, input); - return input; -} - #ifndef MENUQC // select between the normal or the gentle message string based on client (or server) settings string normal_or_gentle(string normal, string gentle) diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index de2d9f9fb..3af12436a 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -9,7 +9,7 @@ #define MSG_WEAPON 3 // "Personal" weapon messages (like "You got the Nex", sent to weapon notify panel) #define MSG_DEATH 4 // "Personal" AND "Global" death messages -string TCR(string input, string teamcolor, string teamtext); // team code replace +#define TCR(input,teamcolor,teamtext) strreplace("^TC", teamcolor, strreplace("^TT", teamtext, input)) void Dump_Notifications(float fh, float alsoprint); -- 2.39.2