Core/Movement: Migrate scripts using GetMotionMaster()->MoveSmoothPath to GetMotionMaster()->MovePath and kill it (they now have the same capabilities)
Port From (https://github.com/TrinityCore/TrinityCore/commit/dad976beb4f1a865e5df5d6f03da1d00d266e1fc)
This commit is contained in:
@@ -90,9 +90,6 @@ namespace Game.Movement
|
||||
|
||||
if (path.Count > 2)
|
||||
{
|
||||
if ((path[2] - path[1]).Length() < 0.1f)
|
||||
return false;
|
||||
|
||||
Vector3 middle = (path.First() + path.Last()) / 2;
|
||||
for (int i = 1; i < path.Count - 1; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user