aboutsummaryrefslogtreecommitdiff
path: root/src/game/DynamicObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-13 10:50:45 -0600
committermegamage <none@none>2008-12-13 10:50:45 -0600
commit32dc92b2cd82927e24dca61f775f0dba144a1588 (patch)
tree0c4f36c4dd03f620841dd4cb88c03ac16f5e09fd /src/game/DynamicObject.cpp
parentfc75674217e3e69c85cf6b142a1737499186b1cc (diff)
*Do not let Illidan cast parasite on Akama.
*Some cell visit update. --HG-- branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r--src/game/DynamicObject.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp
index 18e1d4ee720..dcac7f08a9b 100644
--- a/src/game/DynamicObject.cpp
+++ b/src/game/DynamicObject.cpp
@@ -115,20 +115,8 @@ void DynamicObject::Update(uint32 p_time)
if(m_updateTimer < p_time)
{
- CellPair p(Trinity::ComputeCellPair(GetPositionX(), GetPositionY()));
- Cell cell(p);
- cell.data.Part.reserved = ALL_DISTRICT;
- cell.SetNoCreate();
-
Trinity::DynamicObjectUpdater notifier(*this,caster);
-
- TypeContainerVisitor<Trinity::DynamicObjectUpdater, WorldTypeMapContainer > world_object_notifier(notifier);
- TypeContainerVisitor<Trinity::DynamicObjectUpdater, GridTypeMapContainer > grid_object_notifier(notifier);
-
- CellLock<GridReadGuard> cell_lock(cell, p);
- cell_lock->Visit(cell_lock, world_object_notifier, *GetMap());
- cell_lock->Visit(cell_lock, grid_object_notifier, *GetMap());
-
+ GetMap()->VisitAll(GetPositionX(), GetPositionY(), GetRadius(), notifier);
m_updateTimer = 500; // is this official-like?
}else m_updateTimer -= p_time;