*Do not update object visibility immediately when object is added to map.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-01 11:26:19 -05:00
parent a098dc72fc
commit 182a04f5ea
3 changed files with 11 additions and 5 deletions

View File

@@ -519,10 +519,10 @@ Map::Add(T *obj)
DEBUG_LOG("Object %u enters grid[%u,%u]", GUID_LOPART(obj->GetGUID()), cell.GridX(), cell.GridY());
//something, such as vehicle, needs to be update immediately
//if(obj->GetTypeId() != TYPEID_UNIT)
UpdateObjectVisibility(obj,cell,p);
if(obj->GetTypeId() != TYPEID_UNIT)
UpdateObjectVisibility(obj,cell,p);
//AddNotifier(obj);
AddNotifier(obj);
}
void Map::MessageBroadcast(Player *player, WorldPacket *msg, bool to_self, bool to_possessor)