diff options
author | megamage <none@none> | 2009-03-28 09:57:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-28 09:57:25 -0600 |
commit | a12682a3dd465c514cae29609a3f4c375f4c217d (patch) | |
tree | 3f55d01782027724b2fa66e940d8e4670a847652 /src/game/Map.cpp | |
parent | a5d34754adef1bdab9645217b7995dc02cf457a4 (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.cpp | 3 |
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); } |