From cbee5f956e9665d16baf17f34231685b5576a7f4 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 12 May 2011 10:41:25 +0200 Subject: Core/Spells: Removed unused variables --- src/server/game/Spells/SpellEffects.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index bd56e21a6c1..a8c954e652a 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1766,7 +1766,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex) m_caster->RemoveAura(iter); } else - iter++; + ++iter; } return; } @@ -1843,17 +1843,11 @@ void Spell::EffectJump(SpellEffIndex effIndex) if (m_caster->isInFlight()) return; - float x, y, z, o; + float x, y, z; if (m_targets.getUnitTarget()) - { m_targets.getUnitTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE); - o = m_caster->GetOrientation(); - } else if (m_targets.getGOTarget()) - { m_targets.getGOTarget()->GetContactPoint(m_caster, x, y, z, CONTACT_DISTANCE); - o = m_caster->GetOrientation(); - } else { sLog->outError("Spell::EffectJump - unsupported target mode for spell ID %u", m_spellInfo->Id); @@ -1871,7 +1865,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex) return; // Init dest coordinates - float x, y, z, o; + float x, y, z; if (m_targets.HasDst()) { m_targets.m_dstPos.GetPosition(x, y, z); @@ -1888,10 +1882,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex) else if (m_caster->GetTypeId() == TYPEID_PLAYER) pTarget = ObjectAccessor::GetUnit(*m_caster, m_caster->ToPlayer()->GetSelection()); - o = pTarget ? pTarget->GetOrientation() : m_caster->GetOrientation(); } - else - o = m_caster->GetOrientation(); } else { -- cgit v1.2.3