Core/Movement: Removed unneccessary z position adjustment
Port From (https://github.com/TrinityCore/TrinityCore/commit/58043c8d90f00241c80b58324e84c4361825f345)
This commit is contained in:
@@ -774,11 +774,8 @@ namespace Game.Movement
|
|||||||
void NormalizePath()
|
void NormalizePath()
|
||||||
{
|
{
|
||||||
for (uint i = 0; i < _pathPoints.Length; ++i)
|
for (uint i = 0; i < _pathPoints.Length; ++i)
|
||||||
{
|
|
||||||
_pathPoints[i].Z += _sourceUnit.GetCollisionHeight();
|
|
||||||
_sourceUnit.UpdateAllowedPositionZ(_pathPoints[i].X, _pathPoints[i].Y, ref _pathPoints[i].Z);
|
_sourceUnit.UpdateAllowedPositionZ(_pathPoints[i].X, _pathPoints[i].Y, ref _pathPoints[i].Z);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void BuildShortcut()
|
void BuildShortcut()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user