Escape argument of cl_damagetext_format (it displayed a warning when changing it)
authorterencehill <piuntn@gmail.com>
Tue, 19 Jan 2016 18:59:57 +0000 (19:59 +0100)
committerGitLab <gitlab@gitlab.com>
Wed, 27 Jan 2016 20:54:34 +0000 (20:54 +0000)
qcsrc/common/mutators/mutator/damagetext/damagetext.qc

index 5fb4b1b..bf4c052 100644 (file)
@@ -12,7 +12,7 @@ REGISTER_MUTATOR(damagetext, true);
 
 #if defined(CSQC) || defined(MENUQC)
 AUTOCVAR_SAVE(cl_damagetext,                    bool,   false,      _("Draw damage dealt. 0: disabled, 1: enabled"));
-AUTOCVAR_SAVE(cl_damagetext_format,             string, "-%3$d",    _("How to format the damage text. 1$ is health, 2$ is armor, 3$ is both"));
+AUTOCVAR_SAVE(cl_damagetext_format,             string, "-%3$$d",   _("How to format the damage text. 1$ is health, 2$ is armor, 3$ is both"));
 AUTOCVAR_SAVE(cl_damagetext_color,              vector, '1 1 0',    _("Default damage text color"));
 AUTOCVAR_SAVE(cl_damagetext_color_per_weapon,   bool,   false,      _("Damage text uses weapon color"));
 AUTOCVAR_SAVE(cl_damagetext_size,               float,  8,          _("Damage text font size"));