Core/Movement: Spline code cleanup

Port From (https://github.com/TrinityCore/TrinityCore/commit/e02e8a474244c229cc34c4efb987e24b6dd417f5)
This commit is contained in:
Hondacrx
2025-08-18 11:03:03 -04:00
parent 6995976f3c
commit 5f6329665a
3 changed files with 63 additions and 72 deletions
@@ -63,7 +63,7 @@ namespace Game.Movement
MoveSplineInit init = new(owner);
// Providing a starting vertex since the taxi paths do not provide such
init.Path().Add(new Vector3(owner.GetPositionX(), owner.GetPositionY(), owner.GetPositionZ()));
for (int i = (int)currentNodeId; i != (uint)end; ++i)
for (int i = (int)currentNodeId; i != end; ++i)
{
Vector3 vertice = new(_path[i].Loc.X, _path[i].Loc.Y, _path[i].Loc.Z);
init.Path().Add(vertice);