diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-09-19 23:33:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 23:33:29 +0200 |
commit | 4b7d19c91bde2cabb8498809dee935c7efb2660a (patch) | |
tree | 93735c48109282a77a2daf85e4b100e851c7bbbd /src/server/game/AI | |
parent | 7dd51ae6d98cf6dd8ac71412aa689f888c7bf369 (diff) |
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
Diffstat (limited to 'src/server/game/AI')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index eafb6253b9e..3c0d064c402 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -67,6 +67,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) { @@ -81,7 +83,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; |