]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow color coded format string
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 23 Aug 2015 05:09:04 +0000 (15:09 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 23 Aug 2015 05:09:04 +0000 (15:09 +1000)
qcsrc/common/mutators/mutator/damagetext.qc

index 24bc60505ddfcaef72a384be0c83d2486dc451c2..ad05770eb4aa2c916da97ae6eccd2ef28bf1f01b 100644 (file)
@@ -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)