aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 09:57:25 -0600
committermegamage <none@none>2009-03-28 09:57:25 -0600
commita12682a3dd465c514cae29609a3f4c375f4c217d (patch)
tree3f55d01782027724b2fa66e940d8e4670a847652 /src/game/Map.cpp
parenta5d34754adef1bdab9645217b7995dc02cf457a4 (diff)
*Fix the visibility update bug of non-unit object.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index 6a8bc788e55..13110fe8ca2 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -488,7 +488,8 @@ Map::Add(T *obj)
DEBUG_LOG("Object %u enters grid[%u,%u]", GUID_LOPART(obj->GetGUID()), cell.GridX(), cell.GridY());
- //UpdateObjectVisibility(obj,cell,p);
+ if(obj->GetTypeId() != TYPEID_UNIT)
+ UpdateObjectVisibility(obj,cell,p);
AddNotifier(obj);
}