[8654] Allow loading some type gameobjects without diplay id set.

But make its always inviisble for client.
This commit is contained in:
VladimirMangos 2009-10-17 02:08:41 +04:00
parent 45c9c136ba
commit bc1f6c7d3f
3 changed files with 16 additions and 5 deletions

View file

@ -693,6 +693,10 @@ bool GameObject::isVisibleForInState(Player const* u, WorldObject const* viewPoi
if(!IsInWorld() || !u->IsInWorld())
return false;
// invisible at client always
if(!GetGOInfo()->displayId)
return false;
// Transport always visible at this step implementation
if(IsTransport() && IsInMap(u))
return true;