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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user