From addb1c2ba4f64c693a2dd111f6b30ce7023463b9 Mon Sep 17 00:00:00 2001 From: Samual Date: Tue, 24 May 2011 01:22:06 -0400 Subject: [PATCH] Just a quick fix for the teamkill message coloring -- if the player has colors in their nickname, it breaks the rest of the string since the color isn't re-set. --- qcsrc/client/hud.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 91256b9c5..1af513bf4 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -2034,9 +2034,9 @@ void HUD_Centerprint(string s1, string s2, float type, float msg) } else if(msg == MSG_KILL) { if (type == KILL_TEAM_RED || type == KILL_TEAM_BLUE) { if(gentle) { - centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("^1Moron! You went against %s, a team mate!"), s1))); + centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("^1Moron! You went against ^7%s^1, a team mate!"), s1))); } else { - centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("^1Moron! You fragged %s, a team mate!"), s1))); + centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, sprintf(_("^1Moron! You fragged ^7%s^1, a team mate!"), s1))); } } else if (type == KILL_FIRST_BLOOD) { if(gentle) { -- 2.39.2