Added some missing SetFallInformation calls
Port From (https://github.com/TrinityCore/TrinityCore/commit/cfefd27cb8171b7fe28781eb8f1d903272830f22)
This commit is contained in:
@@ -442,6 +442,7 @@ namespace Game.Movement
|
||||
// this prevent cheating with landing point at lags
|
||||
// when client side flight end early in comparison server side
|
||||
owner.StopMoving();
|
||||
owner.SetFallInformation(0, owner.GetPositionZ());
|
||||
}
|
||||
|
||||
owner.RemovePlayerFlag(PlayerFlags.TaxiBenchmark);
|
||||
|
||||
@@ -525,7 +525,10 @@ namespace Game.Movement
|
||||
|
||||
// don't run spline movement for players
|
||||
if (_owner.IsTypeId(TypeId.Player))
|
||||
{
|
||||
_owner.ToPlayer().SetFallInformation(0, _owner.GetPositionZ());
|
||||
return;
|
||||
}
|
||||
|
||||
MoveSplineInit init = new MoveSplineInit(_owner);
|
||||
init.MoveTo(_owner.GetPositionX(), _owner.GetPositionY(), tz, false);
|
||||
|
||||
Reference in New Issue
Block a user