*Fix the visibility update bug of non-unit object.
--HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user