From: Samual Date: Tue, 24 May 2011 05:22:06 +0000 (-0400) Subject: Just a quick fix for the teamkill message coloring -- if the player has colors in... X-Git-Tag: xonotic-v0.5.0~215^2~7^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=addb1c2ba4f64c693a2dd111f6b30ce7023463b9;p=xonotic%2Fxonotic-data.pk3dir.git 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. --- 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) {