Skip to content

Commit

Permalink
Make Spell::FillAreaTargets() code use new cell search algorithm
Browse files Browse the repository at this point in the history
Signed-off-by: Ambal <pogrebniak@gala.net>

(backported from commit a131492)
  • Loading branch information
Ambal authored and VladimirMangos committed Sep 23, 2009
1 parent 14f6ce3 commit 923e00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Spell.cpp
Expand Up @@ -5220,8 +5220,8 @@ void Spell::FillAreaTargets( UnitList& TagUnitMap, float x, float y, float radiu
TypeContainerVisitor<MaNGOS::SpellNotifierCreatureAndPlayer, WorldTypeMapContainer > world_notifier(notifier);
TypeContainerVisitor<MaNGOS::SpellNotifierCreatureAndPlayer, GridTypeMapContainer > grid_notifier(notifier);
CellLock<GridReadGuard> cell_lock(cell, p);
cell_lock->Visit(cell_lock, world_notifier, *m_caster->GetMap());
cell_lock->Visit(cell_lock, grid_notifier, *m_caster->GetMap());
cell_lock->Visit(cell_lock, world_notifier, *m_caster->GetMap(), *m_caster, radius);
cell_lock->Visit(cell_lock, grid_notifier, *m_caster->GetMap(), *m_caster, radius);
}

void Spell::FillRaidOrPartyTargets( UnitList &TagUnitMap, Unit* target, float radius, bool raid, bool withPets, bool withcaster )
Expand Down

0 comments on commit 923e00d

Please sign in to comment.