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