Core/Units: make SetHover virtual

This commit is contained in:
Spp
2012-11-27 07:44:27 +01:00
parent 50944711c8
commit 611ffbb189
3 changed files with 1 additions and 11 deletions

View File

@@ -25560,14 +25560,6 @@ bool Player::IsInWhisperWhiteList(uint64 guid)
return false;
}
bool Player::SetHover(bool enable)
{
if (!Unit::SetHover(enable))
return false;
return true;
}
void Player::SendMovementSetCanFly(bool apply)
{
WorldPacket data(apply ? SMSG_MOVE_SET_CAN_FLY : SMSG_MOVE_UNSET_CAN_FLY, 12);

View File

@@ -2279,8 +2279,6 @@ class Player : public Unit, public GridObject<Player>
m_mover->m_movedPlayer = this;
}
bool SetHover(bool enable);
void SetSeer(WorldObject* target) { m_seer = target; }
void SetViewpoint(WorldObject* target, bool apply);
WorldObject* GetViewpoint() const;

View File

@@ -1618,7 +1618,7 @@ class Unit : public WorldObject
bool IsWalking() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_WALKING);}
virtual bool SetWalk(bool enable);
virtual bool SetDisableGravity(bool disable, bool packetOnly = false);
bool SetHover(bool enable);
virtual bool SetHover(bool enable);
void SetInFront(Unit const* target);
void SetFacingTo(float ori);