mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11727] Interrupt spline movement at teleporting
this fixes the position desync issue caused by teleport packets
This commit is contained in:
parent
e246d8d94e
commit
94133107c7
5 changed files with 13 additions and 2 deletions
|
|
@ -1759,6 +1759,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||
|
||||
// reset movement flags at teleport, because player will continue move with these flags after teleport
|
||||
m_movementInfo.SetMovementFlags(MOVEFLAG_NONE);
|
||||
DisableSpline();
|
||||
|
||||
if ((GetMapId() == mapid) && (!m_transport))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue