mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 12:03:48 +00:00
refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr * NULL to nullptr Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
@@ -80,7 +80,7 @@ class MotionMaster //: private std::stack<MovementGenerator *>
|
||||
if (empty())
|
||||
return;
|
||||
|
||||
Impl[_top] = NULL;
|
||||
Impl[_top] = nullptr;
|
||||
while (!empty() && !top())
|
||||
--_top;
|
||||
}
|
||||
@@ -94,11 +94,11 @@ class MotionMaster //: private std::stack<MovementGenerator *>
|
||||
void InitTop();
|
||||
public:
|
||||
|
||||
explicit MotionMaster(Unit* unit) : _expList(NULL), _top(-1), _owner(unit), _cleanFlag(MMCF_NONE)
|
||||
explicit MotionMaster(Unit* unit) : _expList(nullptr), _top(-1), _owner(unit), _cleanFlag(MMCF_NONE)
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_MOTION_SLOT; ++i)
|
||||
{
|
||||
Impl[i] = NULL;
|
||||
Impl[i] = nullptr;
|
||||
_needInit[i] = true;
|
||||
}
|
||||
}
|
||||
@@ -183,7 +183,7 @@ class MotionMaster //: private std::stack<MovementGenerator *>
|
||||
void MoveJumpTo(float angle, float speedXY, float speedZ);
|
||||
void MoveJump(Position const& pos, float speedXY, float speedZ, uint32 id = 0)
|
||||
{ MoveJump(pos.m_positionX, pos.m_positionY, pos.m_positionZ, speedXY, speedZ, id); };
|
||||
void MoveJump(float x, float y, float z, float speedXY, float speedZ, uint32 id = 0, Unit const* target = NULL);
|
||||
void MoveJump(float x, float y, float z, float speedXY, float speedZ, uint32 id = 0, Unit const* target = nullptr);
|
||||
void MoveFall(uint32 id = 0, bool addFlagForNPC = false);
|
||||
|
||||
void MoveSeekAssistance(float x, float y, float z);
|
||||
|
||||
Reference in New Issue
Block a user