mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10112] Rename GetObjectSize function to GetObjectBoundingRadius
To reflect better what the function should actually return and also to clarify when used in misc calculations. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
0757b43929
commit
3eb2d2910e
11 changed files with 46 additions and 46 deletions
|
|
@ -2286,7 +2286,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
}
|
||||
|
||||
float _target_x, _target_y, _target_z;
|
||||
pTarget->GetClosePoint(_target_x, _target_y, _target_z, pTarget->GetObjectSize(), dist, angle);
|
||||
pTarget->GetClosePoint(_target_x, _target_y, _target_z, pTarget->GetObjectBoundingRadius(), dist, angle);
|
||||
if(pTarget->IsWithinLOS(_target_x, _target_y, _target_z))
|
||||
{
|
||||
targetUnitMap.push_back(m_caster);
|
||||
|
|
@ -2368,7 +2368,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
|||
float dist = minRange+ rand_norm_f()*(maxRange-minRange);
|
||||
|
||||
float _target_x, _target_y, _target_z;
|
||||
m_caster->GetClosePoint(_target_x, _target_y, _target_z, m_caster->GetObjectSize(), dist);
|
||||
m_caster->GetClosePoint(_target_x, _target_y, _target_z, m_caster->GetObjectBoundingRadius(), dist);
|
||||
m_targets.setDestination(_target_x, _target_y, _target_z);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue