Core/SAI: Add orientation and delay columns to waypoints table

Port From (https://github.com/TrinityCore/TrinityCore/commit/a65b3493a7823ba543070c514d54f3c07c417bc1)
This commit is contained in:
hondacrx
2022-05-24 10:05:48 -04:00
parent a4d5b9eb6f
commit 5e65e712c6
2 changed files with 4 additions and 2 deletions
@@ -348,6 +348,8 @@ namespace Game.AI
float x = result.Read<float>(2);
float y = result.Read<float>(3);
float z = result.Read<float>(4);
float o = result.Read<float>(5);
uint delay = result.Read<uint>(6);
if (lastEntry != entry)
{
@@ -365,7 +367,7 @@ namespace Game.AI
WaypointPath path = _waypointStore[entry];
path.id = entry;
path.nodes.Add(new WaypointNode(id, x, y, z));
path.nodes.Add(new WaypointNode(id, x, y, z, o, delay));
lastEntry = entry;
++total;