fix(Core): increase visibility distance of large game objects (#1788)

This commit is contained in:
Stoabrogga 2019-05-08 08:01:40 +02:00 committed by GitHub
parent a68c13488e
commit eee8e965e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 3 deletions

View file

@ -351,6 +351,10 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa
LastUsedScriptID = GetGOInfo()->ScriptId;
AIM_Initialize();
// Check if GameObject is Large
if (goinfo->IsLargeGameObject())
SetVisibilityDistanceOverride(true);
return true;
}