Core/Spells: Removed a really retarded hack that searched for GameObject targets 50 yards further than it should

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-22 23:04:05 +01:00
parent 7ba4caf3d0
commit 66b4c8003c
+1 -1
View File
@@ -1873,7 +1873,7 @@ void Spell::SearchGOAreaTarget(std::list<GameObject*> &TagGOMap, float radius, S
break; break;
} }
Trinity::GameObjectInRangeCheck check(pos->m_positionX, pos->m_positionY, pos->m_positionZ, radius + 50, entry); Trinity::GameObjectInRangeCheck check(pos->m_positionX, pos->m_positionY, pos->m_positionZ, radius, entry);
Trinity::GameObjectListSearcher<Trinity::GameObjectInRangeCheck> searcher(m_caster, TagGOMap, check); Trinity::GameObjectListSearcher<Trinity::GameObjectInRangeCheck> searcher(m_caster, TagGOMap, check);
m_caster->GetMap()->VisitGrid(pos->m_positionX, pos->m_positionY, radius, searcher); m_caster->GetMap()->VisitGrid(pos->m_positionX, pos->m_positionY, radius, searcher);
} }