mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
feat(Core/Movement): Allow waypoints to use 0 as valid facing value (#11681)
* feat(Core/Movement): Allow waypoints to use 0 as valid facing value
* cherry-pick commit (4747515872)
Co-Authored-By: Ovah <18347559+Ovahlord@users.noreply.github.com>
* Update SmartScriptMgr.h
* a
* Update SmartAI.cpp
* Update SmartAI.cpp
* Update SmartAI.cpp
* typo
* Update SmartAI.cpp
* Update SmartAI.cpp
* Compile fix
* compile #2
* Update WaypointMgr.h
* Update SmartScriptMgr.h
* compile fix again
Co-authored-by: Ovah <18347559+Ovahlord@users.noreply.github.com>
Co-authored-by: MDIC <joshua.lee.betts@gmail.com>
This commit is contained in:
@@ -79,11 +79,12 @@ void SmartWaypointMgr::LoadFromDB()
|
||||
Field* fields = result->Fetch();
|
||||
uint32 entry = fields[0].Get<uint32>();
|
||||
uint32 id = fields[1].Get<uint32>();
|
||||
float x, y, z, o;
|
||||
x = fields[2].Get<float>();
|
||||
y = fields[3].Get<float>();
|
||||
z = fields[4].Get<float>();
|
||||
o = fields[5].Get<float>();
|
||||
float x = fields[2].Get<float>();
|
||||
float y = fields[3].Get<float>();
|
||||
float z = fields[4].Get<float>();
|
||||
Optional<float> o;
|
||||
if (!fields[5].IsNull())
|
||||
o = fields[5].Get<float>();
|
||||
uint32 delay = fields[6].Get<uint32>();
|
||||
|
||||
if (last_entry != entry)
|
||||
|
||||
Reference in New Issue
Block a user