From: Mario Date: Fri, 15 Jan 2016 14:53:18 +0000 (+1000) Subject: Fix naming of a variable which broke inferno's damage burn time X-Git-Tag: xonotic-v0.8.2~1241 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7cfa6b52b642977ca9e9c91720786ec0cdf13eae;p=xonotic%2Fxonotic-data.pk3dir.git Fix naming of a variable which broke inferno's damage burn time --- diff --git a/qcsrc/common/mutators/mutator/buffs/buffs.qc b/qcsrc/common/mutators/mutator/buffs/buffs.qc index 507041e06..f3632cbaf 100644 --- a/qcsrc/common/mutators/mutator/buffs/buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/buffs.qc @@ -579,7 +579,7 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerDamage_Calculate) if(frag_attacker.buffs & BUFF_INFERNO.m_itemid) if(frag_target != frag_attacker) { - float time = buff_Inferno_CalculateTime( + float btime = buff_Inferno_CalculateTime( frag_damage, 0, autocvar_g_buffs_inferno_burntime_min_time, @@ -587,7 +587,7 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerDamage_Calculate) autocvar_g_buffs_inferno_burntime_target_time, autocvar_g_buffs_inferno_burntime_factor ); - Fire_AddDamage(frag_target, frag_attacker, (frag_damage * autocvar_g_buffs_inferno_damagemultiplier) * time, time, DEATH_BUFF.m_id); + Fire_AddDamage(frag_target, frag_attacker, (frag_damage * autocvar_g_buffs_inferno_damagemultiplier), btime, DEATH_BUFF.m_id); } // this... is ridiculous (TODO: fix!)