From: TimePath Date: Sun, 23 Aug 2015 05:09:04 +0000 (+1000) Subject: Allow color coded format string X-Git-Tag: xonotic-v0.8.2~2054^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b830afa8352dcb22f2da4bde9fd7365968dda8a;p=xonotic%2Fxonotic-data.pk3dir.git Allow color coded format string --- 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)