diff options
author | megamage <none@none> | 2009-05-01 11:26:19 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-01 11:26:19 -0500 |
commit | 182a04f5ea650ebacf98df3015fdedd4008eb6cb (patch) | |
tree | c5e5374beefd83e358b15f6160bc9f5b11e0f296 /src/game/Map.cpp | |
parent | a098dc72fcb86880955a1e5ba775c5aaefe78e1e (diff) |
*Do not update object visibility immediately when object is added to map.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 20590eb071b..0989c4b4dab 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -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) |