aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Map.cpp3
-rw-r--r--src/game/SpellEffects.cpp2
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)