Core: Fixed warning C4263: 'bool Creature::SetDisableGravity(bool,bool)' : member function does not override any base class virtual member function
This commit is contained in:
@@ -17565,7 +17565,7 @@ bool Unit::SetWalk(bool enable)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Unit::SetDisableGravity(bool disable)
|
||||
bool Unit::SetDisableGravity(bool disable, bool packetOnly /*= false*/)
|
||||
{
|
||||
if (disable == IsLevitating())
|
||||
return false;
|
||||
|
||||
@@ -707,7 +707,7 @@ enum MovementFlags
|
||||
MOVEMENTFLAG_MASK_TURNING =
|
||||
MOVEMENTFLAG_LEFT | MOVEMENTFLAG_RIGHT,
|
||||
|
||||
MOVEMENTFLAG_MASK_MOVING_FLY =
|
||||
MOVEMENTFLAG_MASK_MOVING_FLY =
|
||||
MOVEMENTFLAG_FLYING | MOVEMENTFLAG_ASCENDING | MOVEMENTFLAG_DESCENDING,
|
||||
|
||||
//! TODO if needed: add more flags to this masks that are exclusive to players
|
||||
@@ -1647,7 +1647,7 @@ class Unit : public WorldObject
|
||||
bool IsLevitating() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY);}
|
||||
bool IsWalking() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_WALKING);}
|
||||
virtual bool SetWalk(bool enable);
|
||||
virtual bool SetDisableGravity(bool disable);
|
||||
virtual bool SetDisableGravity(bool disable, bool packetOnly = false);
|
||||
bool SetHover(bool enable);
|
||||
|
||||
void SetInFront(Unit const* target);
|
||||
|
||||
Reference in New Issue
Block a user