feat(Core/SAI): Wp table add in orientation and delay collumn (#8927)

ADD (Core) Wp table add in orientation and delay collumn
TC Cherry pick of TrinityCore/TrinityCore@4b7d19c
This commit is contained in:
acidmanifesto
2021-11-06 07:43:45 -04:00
committed by GitHub
parent 3d556c4b6e
commit 93bbff4cca
4 changed files with 14 additions and 4 deletions

View File

@@ -70,10 +70,12 @@ void SmartWaypointMgr::LoadFromDB()
Field* fields = result->Fetch();
uint32 entry = fields[0].GetUInt32();
uint32 id = fields[1].GetUInt32();
float x, y, z;
float x, y, z, o;
x = fields[2].GetFloat();
y = fields[3].GetFloat();
z = fields[4].GetFloat();
o = fields[5].GetFloat();
uint32 delay = fields[6].GetUInt32();
if (last_entry != entry)
{
@@ -86,7 +88,7 @@ void SmartWaypointMgr::LoadFromDB()
LOG_ERROR("sql.sql", "SmartWaypointMgr::LoadFromDB: Path entry %u, unexpected point id %u, expected %u.", entry, id, last_id);
last_id++;
(*waypoint_map[entry])[id] = new WayPoint(id, x, y, z);
(*waypoint_map[entry])[id] = new WayPoint(id, x, y, z, o, delay);
last_entry = entry;
total++;