forked from mirror/azerothcore-wotlk
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 (https://github.com/TrinityCore/TrinityCore/commit/4747515872775553de35cc3267e1ccd5e0076ca4) Co-Authored-By: Ovah <[email protected]> * 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 <[email protected]> Co-authored-by: MDIC <[email protected]>
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "Creature.h"
|
||||
#include "CreatureAI.h"
|
||||
#include "DBCStores.h"
|
||||
#include "Optional.h"
|
||||
#include "Spell.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "Unit.h"
|
||||
@@ -30,7 +31,7 @@ typedef uint32 SAIBool;
|
||||
|
||||
struct WayPoint
|
||||
{
|
||||
WayPoint(uint32 _id, float _x, float _y, float _z, float _o, uint32 _delay)
|
||||
WayPoint(uint32 _id, float _x, float _y, float _z, Optional<float> _o, uint32 _delay)
|
||||
{
|
||||
id = _id;
|
||||
x = _x;
|
||||
@@ -44,7 +45,7 @@ struct WayPoint
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float o;
|
||||
std::optional<float> o;
|
||||
uint32 delay;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user