fix(Core/Object): Add infinite gob check (#9667)
* cherry-pick commit (b0db728c49)
Co-authored-by: Kittnz <5845231+kittnz@users.noreply.github.com>
This commit is contained in:
parent
9eab6d373d
commit
4a6db8f8c6
2 changed files with 25 additions and 0 deletions
|
|
@ -400,6 +400,12 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
|
|||
SetVisibilityDistanceOverride(VisibilityDistanceType::Large);
|
||||
}
|
||||
|
||||
// Check if GameObject is Infinite
|
||||
if (goinfo->IsInfiniteGameObject())
|
||||
{
|
||||
SetVisibilityDistanceOverride(VisibilityDistanceType::Infinite);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue