diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-09-19 23:33:29 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-27 20:08:41 +0100 |
commit | a65b3493a7823ba543070c514d54f3c07c417bc1 (patch) | |
tree | 5c66df602c726f67fa446eef7a73b8fd3f1f68dd /src/server/game/AI/SmartScripts | |
parent | 60519e947f634f12aa93a1871d53e012ed9e57d2 (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
(cherry picked from commit 4b7d19c91bde2cabb8498809dee935c7efb2660a)
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-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 40a199552a6..3197ca8995b 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -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; |