mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10539] Use more near for final point coordinates for Z calcualtion.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
19844a6ba1
commit
75611b78fa
2 changed files with 2 additions and 2 deletions
|
|
@ -1563,7 +1563,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
|
||||||
float angle = 2.0f * M_PI_F * rand_norm_f();
|
float angle = 2.0f * M_PI_F * rand_norm_f();
|
||||||
float dest_x = m_targets.m_destX + cos(angle) * radius;
|
float dest_x = m_targets.m_destX + cos(angle) * radius;
|
||||||
float dest_y = m_targets.m_destY + sin(angle) * radius;
|
float dest_y = m_targets.m_destY + sin(angle) * radius;
|
||||||
float dest_z = m_caster->GetPositionZ();
|
float dest_z = m_targets.m_destZ;
|
||||||
m_caster->UpdateGroundPositionZ(dest_x, dest_y, dest_z);
|
m_caster->UpdateGroundPositionZ(dest_x, dest_y, dest_z);
|
||||||
m_targets.setDestination(dest_x, dest_y, dest_z);
|
m_targets.setDestination(dest_x, dest_y, dest_z);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10538"
|
#define REVISION_NR "10539"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue