aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-05-12 10:41:25 +0200
committerShauren <shauren.trinity@gmail.com>2011-05-12 10:41:25 +0200
commitcbee5f956e9665d16baf17f34231685b5576a7f4 (patch)
tree654bf6f70bf5066981e84549f4cbdf9324e884dd /src
parent339e8cb7e08295579fa21afbfd11ae620c78861f (diff)
Core/Spells: Removed unused variables
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/SpellEffects.cpp15
1 files changed, 3 insertions, 12 deletions
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
{