]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix g_freezetag_revive_auto_reducible not working as the description says
authorterencehill <piuntn@gmail.com>
Wed, 17 Jun 2020 20:13:39 +0000 (22:13 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 17 Jun 2020 20:13:39 +0000 (22:13 +0200)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc

index 92204c0c6313347d18449557439bf8ad349adbe5..fbd8262af648aacd1bbf5db9ac46a29ca73ae93e 100644 (file)
@@ -470,7 +470,7 @@ MUTATOR_HOOKFUNCTION(ft, Damage_Calculate)
                && autocvar_g_freezetag_frozen_maxtime > 0 && autocvar_g_freezetag_revive_auto)
        {
                float t = 0;
-               if ((autocvar_g_freezetag_revive_auto_reducible > 0 || DIFF_TEAM(frag_attacker, frag_target))
+               if ((autocvar_g_freezetag_revive_auto_reducible < 0 || DIFF_TEAM(frag_attacker, frag_target))
                        && frag_target.freezetag_frozen_timeout > time)
                {
                        if (fabs(autocvar_g_freezetag_revive_auto_reducible) == 1)