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

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-01 11:26:19 -05:00
1 parent a098dc72fc
commit 182a04f5ea
3 files changed
+11 -5

No files matched your search

+3 -3
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)