Core/SAI: Add orientation and delay columns to waypoints table (#25472)

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

* Rename 2020_99_99_99_world.sql to 2020_09_19_00_world.sql

(cherry picked from commit 4b7d19c91bde2cabb8498809dee935c7efb2660a)
This commit is contained in:
Giacomo Pozzoni
2022-02-27 20:08:41 +01:00
committed by Shauren
parent 60519e947f
commit a65b3493a7
3 changed files with 6 additions and 2 deletions
@@ -70,6 +70,8 @@ void SmartWaypointMgr::LoadFromDB()
float x = fields[2].GetFloat();
float y = fields[3].GetFloat();
float z = fields[4].GetFloat();
float o = fields[5].GetFloat();
uint32 delay = fields[6].GetUInt32();
if (lastEntry != entry)
{
@@ -84,7 +86,7 @@ void SmartWaypointMgr::LoadFromDB()
WaypointPath& path = _waypointStore[entry];
path.id = entry;
path.nodes.emplace_back(id, x, y, z);
path.nodes.emplace_back(id, x, y, z, o, delay);
lastEntry = entry;
++total;