Core/Movement: Do not remove movement flags that have special opcodes associated with them on teleport
Closes #10162
This commit is contained in:
1 parent
4aad735af9
commit
330dd624b6
2 files changed
+7
-2
No files matched your search
@@ -2130,7 +2130,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
||||
ExitVehicle();
|
||||
|
||||
// reset movement flags at teleport, because player will continue move with these flags after teleport
|
||||
SetUnitMovementFlags(0);
|
||||
SetUnitMovementFlags(GetUnitMovementFlags() & MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE);
|
||||
DisableSpline();
|
||||
|
||||
if (m_transport)
|
||||
|
||||
Reference in new issue
Block a user