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 | |
parent | a5d34754adef1bdab9645217b7995dc02cf457a4 (diff) |
*Fix the visibility update bug of non-unit object.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Map.cpp | 3 | ||||
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
2 files changed, 3 insertions, 2 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); } diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index bf9a9d261fe..9f4b240f6b4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3562,7 +3562,7 @@ void Spell::EffectAddFarsight(uint32 i) // Need to update visibility of object for client to accept farsight guid ((Player*)m_caster)->SetViewpoint(dynObj, true); - //((Player*)m_caster)->UpdateVisibilityOf(dynObj); + ((Player*)m_caster)->UpdateVisibilityOf(dynObj); } void Spell::EffectSummonWild(uint32 i) |