]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
the conditions are identical, make them look identical
authorMartin Taibr <taibr.martin@gmail.com>
Wed, 22 Feb 2017 08:47:29 +0000 (09:47 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Wed, 22 Feb 2017 08:47:29 +0000 (09:47 +0100)
qcsrc/common/mutators/mutator/damagetext/damagetext.qc

index f89b6caeb06756e014be79005d3eea8dffbfeb96..04d57e2b5b69ca2adfa87b42ddd3c9d6c838e7e1 100644 (file)
@@ -114,7 +114,7 @@ CLASS(DamageText, Object)
                 : sprintf("%d", potential)
             ), s);
         s = strreplace("{potential_health}", (
-            (this.m_potential_damage - this.m_armordamage == this.m_healthdamage && autocvar_cl_damagetext_format_hide_redundant)
+            (this.m_potential_damage == this.m_healthdamage + this.m_armordamage && autocvar_cl_damagetext_format_hide_redundant)
                 ? ""
                 : sprintf("%d", potential_health)
             ), s);