Core/Objects: Add const to Object::DestroyForPlayer and Object::SendOutOfRangeForPlayer
This commit is contained in:
@@ -260,7 +260,7 @@ ByteBuffer& Object::PrepareValuesUpdateBuffer(UpdateData* data) const
|
||||
return buffer;
|
||||
}
|
||||
|
||||
void Object::DestroyForPlayer(Player* target) const
|
||||
void Object::DestroyForPlayer(Player const* target) const
|
||||
{
|
||||
ASSERT(target);
|
||||
|
||||
@@ -271,7 +271,7 @@ void Object::DestroyForPlayer(Player* target) const
|
||||
target->SendDirectMessage(&packet);
|
||||
}
|
||||
|
||||
void Object::SendOutOfRangeForPlayer(Player* target) const
|
||||
void Object::SendOutOfRangeForPlayer(Player const* target) const
|
||||
{
|
||||
ASSERT(target);
|
||||
|
||||
|
||||
@@ -228,8 +228,8 @@ class TC_GAME_API Object
|
||||
void BuildOutOfRangeUpdateBlock(UpdateData* data) const;
|
||||
ByteBuffer& PrepareValuesUpdateBuffer(UpdateData* data) const;
|
||||
|
||||
virtual void DestroyForPlayer(Player* target) const;
|
||||
void SendOutOfRangeForPlayer(Player* target) const;
|
||||
virtual void DestroyForPlayer(Player const* target) const;
|
||||
void SendOutOfRangeForPlayer(Player const* target) const;
|
||||
|
||||
virtual void ClearUpdateMask(bool remove);
|
||||
|
||||
|
||||
@@ -3706,7 +3706,7 @@ void Player::ValuesUpdateForPlayerWithMaskSender::operator()(Player const* playe
|
||||
player->SendDirectMessage(&packet);
|
||||
}
|
||||
|
||||
void Player::DestroyForPlayer(Player* target) const
|
||||
void Player::DestroyForPlayer(Player const* target) const
|
||||
{
|
||||
Unit::DestroyForPlayer(target);
|
||||
|
||||
|
||||
@@ -2233,7 +2233,7 @@ class TC_GAME_API Player final : public Unit, public GridObject<Player>
|
||||
void operator()(Player const* player) const;
|
||||
};
|
||||
|
||||
void DestroyForPlayer(Player* target) const override;
|
||||
void DestroyForPlayer(Player const* target) const override;
|
||||
|
||||
// notifiers
|
||||
void SendAttackSwingCancelAttack() const;
|
||||
|
||||
@@ -14128,7 +14128,7 @@ UF::UpdateFieldFlag Unit::GetUpdateFieldFlagsFor(Player const* target) const
|
||||
return flags;
|
||||
}
|
||||
|
||||
void Unit::DestroyForPlayer(Player* target) const
|
||||
void Unit::DestroyForPlayer(Player const* target) const
|
||||
{
|
||||
if (Battleground* bg = target->GetBattleground())
|
||||
{
|
||||
|
||||
@@ -1878,7 +1878,7 @@ class TC_GAME_API Unit : public WorldObject
|
||||
|
||||
UF::UpdateFieldFlag GetUpdateFieldFlagsFor(Player const* target) const override;
|
||||
|
||||
void DestroyForPlayer(Player* target) const override;
|
||||
void DestroyForPlayer(Player const* target) const override;
|
||||
void ClearUpdateMask(bool remove) override;
|
||||
|
||||
void _UpdateSpells(uint32 time);
|
||||
|
||||
Reference in New Issue
Block a user