diff options
| author | megamage <none@none> | 2009-01-09 17:52:13 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-09 17:52:13 -0600 |
| commit | 9fe27bf644ccd001ba64f9c5e0e4a83b1a814d44 (patch) | |
| tree | 47dc6f0bcff9742f40f978e08eb460d45d0dd9bc /src/game/Spell.cpp | |
| parent | 9b8c50bb3b628f28db6eec01f7186916bff75f00 (diff) | |
*Fix the bug caused by funtions with the same name.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 88b8b0e722e..aa0d24ffdb8 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1911,7 +1911,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) default: angle = rand_norm()*2*M_PI; break; } - m_caster->GetClosePoint(x, y, z, dist, angle); + m_caster->GetGroundPointAroundUnit(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; @@ -1957,7 +1957,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) default: angle = rand_norm()*2*M_PI; break; } - target->GetClosePoint(x, y, z, dist, angle); + target->GetGroundPointAroundUnit(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; @@ -1994,7 +1994,7 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap) x = m_targets.m_destX; y = m_targets.m_destY; z = m_targets.m_destZ; - m_caster->GetClosePointAt(x, y, z, dist, angle); + m_caster->GetGroundPoint(x, y, z, dist, angle); m_targets.setDestination(x, y, z); // do not know if has ground visual }break; |
