Core/Movement: Store delay in WaypointNode as Milliseconds instead of raw integer

Port From (https://github.com/TrinityCore/TrinityCore/commit/e1f43900d110e50a2021d605c61cfe7c436bcc54)
This commit is contained in:
Hondacrx
2024-08-12 16:13:15 -04:00
parent 194ca97e93
commit 8805432cee
3 changed files with 21 additions and 26 deletions
@@ -317,7 +317,7 @@ namespace Game.AI
GridDefines.NormalizeMapCoord(ref x);
GridDefines.NormalizeMapCoord(ref y);
WaypointNode waypoint = new(id, x, y, z, orientation, (uint)waitTime.TotalMilliseconds);
WaypointNode waypoint = new(id, x, y, z, orientation, waitTime);
waypoint.MoveType = run ? WaypointMoveType.Run : WaypointMoveType.Walk;
_path.Nodes.Add(waypoint);
}