]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use FROZEN_* constants in all the Freeze calls 600/head
authorterencehill <piuntn@gmail.com>
Tue, 25 Sep 2018 12:48:35 +0000 (14:48 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 25 Sep 2018 12:48:35 +0000 (14:48 +0200)
qcsrc/common/gamemodes/gamemode/freezetag/sv_freezetag.qc
qcsrc/common/mutators/mutator/nades/nades.qc

index d740bd0b98adb8435e90166184b30d15ffa41a49..7980399f64f49eeb8d396cd658f620fa425d8eb5 100644 (file)
@@ -203,7 +203,7 @@ void freezetag_Freeze(entity targ, entity attacker)
        if(autocvar_g_freezetag_frozen_maxtime > 0)
                targ.freezetag_frozen_timeout = time + autocvar_g_freezetag_frozen_maxtime;
 
-       Freeze(targ, 0, 1, true);
+       Freeze(targ, 0, FROZEN_NORMAL, true);
 
        freezetag_count_alive_players();
 
index 45a6bae97aabeb2082466f952e68fb4394906d1f..93a45fb3d59e1239a4fc339fadbbe1fd56616a23 100644 (file)
@@ -383,7 +383,7 @@ void nade_ice_freeze(entity freezefield, entity frost_target, float freezetime)
 {
        frost_target.frozen_by = freezefield.realowner;
        Send_Effect(EFFECT_ELECTRO_IMPACT, frost_target.origin, '0 0 0', 1);
-       Freeze(frost_target, 1 / freezetime, 3, false);
+       Freeze(frost_target, 1 / freezetime, FROZEN_TEMP_DYING, false);
 
        Drop_Special_Items(frost_target);
 }