mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Objects: Removed default argument value from WorldObject::IsNeverVisible
This commit is contained in:
@@ -1242,7 +1242,7 @@ void GameObject::SaveRespawnTime(uint32 forceDelay)
|
||||
|
||||
bool GameObject::IsNeverVisible(bool allowServersideObjects) const
|
||||
{
|
||||
if (WorldObject::IsNeverVisible())
|
||||
if (WorldObject::IsNeverVisible(allowServersideObjects))
|
||||
return true;
|
||||
|
||||
if (GetGOInfo()->GetServerOnly() && !allowServersideObjects)
|
||||
|
||||
@@ -235,7 +235,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
|
||||
|
||||
void TriggeringLinkedGameObject(uint32 trapEntry, Unit* target);
|
||||
|
||||
bool IsNeverVisible(bool allowServersideObjects = false) const override;
|
||||
bool IsNeverVisible(bool allowServersideObjects) const override;
|
||||
bool IsAlwaysVisibleFor(WorldObject const* seer) const override;
|
||||
bool IsInvisibleDueToDespawn() const override;
|
||||
|
||||
|
||||
@@ -550,7 +550,7 @@ class TC_GAME_API WorldObject : public Object, public WorldLocation
|
||||
void SetLocationMapId(uint32 _mapId) { m_mapId = _mapId; }
|
||||
void SetLocationInstanceId(uint32 _instanceId) { m_InstanceId = _instanceId; }
|
||||
|
||||
virtual bool IsNeverVisible([[maybe_unused]] bool allowServersideObjects = false) const { return !IsInWorld(); }
|
||||
virtual bool IsNeverVisible([[maybe_unused]] bool allowServersideObjects) const { return !IsInWorld(); }
|
||||
virtual bool IsAlwaysVisibleFor(WorldObject const* /*seer*/) const { return false; }
|
||||
virtual bool IsInvisibleDueToDespawn() const { return false; }
|
||||
//difference from IsAlwaysVisibleFor: 1. after distance check; 2. use owner or charmer as seer
|
||||
|
||||
@@ -2026,7 +2026,7 @@ class TC_GAME_API Player : public Unit, public GridObject<Player>
|
||||
|
||||
bool HaveAtClient(Object const* u) const;
|
||||
|
||||
bool IsNeverVisible(bool allowServersideObjects = false) const override;
|
||||
bool IsNeverVisible(bool allowServersideObjects) const override;
|
||||
|
||||
bool IsVisibleGloballyFor(Player const* player) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user