[11727] Interrupt spline movement at teleporting

this fixes the position desync issue caused by teleport packets
This commit is contained in:
SilverIce 2011-07-09 19:23:42 +03:00
parent e246d8d94e
commit 94133107c7
5 changed files with 13 additions and 2 deletions

View file

@ -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))
{