mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 20:52:22 -04:00
*Fix the bug that player turn is not updated in server side.
--HG-- branch : trunk
This commit is contained in:
@@ -5646,10 +5646,12 @@ bool Player::SetPosition(float x, float y, float z, float orientation, bool tele
|
||||
// mover->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_TURNING);
|
||||
//AURA_INTERRUPT_FLAG_JUMP not sure
|
||||
|
||||
if(GetOrientation() != orientation)
|
||||
bool turn = (GetOrientation() != orientation);
|
||||
bool move2d = (teleport || GetPositionX() != x || GetPositionY() != y);
|
||||
|
||||
if(turn)
|
||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_TURNING);
|
||||
|
||||
bool move2d = (teleport || GetPositionX() != x || GetPositionY() != y);
|
||||
if(move2d || GetPositionZ() != z)
|
||||
{
|
||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_MOVE);
|
||||
@@ -5669,6 +5671,10 @@ bool Player::SetPosition(float x, float y, float z, float orientation, bool tele
|
||||
|
||||
CheckExploreSystem();
|
||||
}
|
||||
else if(turn)
|
||||
{
|
||||
SetOrientation(orientation);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user