mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[0072] Fix world teleport and use normalized orientation in some more places
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
d861cd0d3a
commit
b4d97ccf77
11 changed files with 663 additions and 462 deletions
|
|
@ -1093,7 +1093,7 @@ void WorldObject::Relocate(float x, float y, float z, float orientation)
|
|||
m_position.x = x;
|
||||
m_position.y = y;
|
||||
m_position.z = z;
|
||||
m_position.o = orientation;
|
||||
m_position.o = NormalizeOrientation(orientation);
|
||||
|
||||
if (isType(TYPEMASK_UNIT))
|
||||
((Unit*)this)->m_movementInfo.ChangePosition(x, y, z, orientation);
|
||||
|
|
@ -1111,7 +1111,7 @@ void WorldObject::Relocate(float x, float y, float z)
|
|||
|
||||
void WorldObject::SetOrientation(float orientation)
|
||||
{
|
||||
m_position.o = orientation;
|
||||
m_position.o = NormalizeOrientation(orientation);
|
||||
|
||||
if (isType(TYPEMASK_UNIT))
|
||||
((Unit*)this)->m_movementInfo.ChangeOrientation(orientation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue