From: Samual Lenks Date: Thu, 7 Feb 2013 03:29:17 +0000 (-0500) Subject: This doesn't need to be a function X-Git-Tag: xonotic-v0.7.0~62^2~23^2~272 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25e3eef53dac9d15abf3e8c01b443d3a7a7e56a7;p=xonotic%2Fxonotic-data.pk3dir.git This doesn't need to be a function --- 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);