From 3b830afa8352dcb22f2da4bde9fd7365968dda8a Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 23 Aug 2015 15:09:04 +1000 Subject: [PATCH] Allow color coded format string --- qcsrc/common/mutators/mutator/damagetext.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/mutators/mutator/damagetext.qc b/qcsrc/common/mutators/mutator/damagetext.qc index 24bc60505..ad05770eb 100644 --- a/qcsrc/common/mutators/mutator/damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext.qc @@ -32,7 +32,7 @@ CLASS(DamageText, Object) if (pos.z >= 0 && this.m_size > 0) { pos.z = 0; string s = sprintf(autocvar_cl_damagetext_format, this.m_damage, this.m_armordamage, this.m_damage + this.m_armordamage); - drawstring(pos, s, this.m_size * '1 1 0', this.m_color, this.alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring2(pos, s, this.m_size * '1 1 0', this.m_color, this.alpha, DRAWFLAG_NORMAL); } } ATTRIB(DamageText, draw2d, void(), DamageText_draw) -- 2.39.2