mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Movement: Fix pushback issues and client freeze.
This commit is contained in:
@@ -383,6 +383,12 @@ void MotionMaster::MoveFall(uint32 id/*=0*/)
|
||||
if (fabs(_owner->GetPositionZ() - tz) < 0.1f)
|
||||
return;
|
||||
|
||||
if (_owner->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
_owner->AddUnitMovementFlag(MOVEMENTFLAG_FALLING);
|
||||
_owner->m_movementInfo.SetFallTime(0);
|
||||
}
|
||||
|
||||
Movement::MoveSplineInit init(*_owner);
|
||||
init.MoveTo(_owner->GetPositionX(), _owner->GetPositionY(), tz);
|
||||
init.SetFall();
|
||||
|
||||
Reference in New Issue
Block a user