update cell search methtod (visiting grids by coords)

the old way will miss the grids when non standart cell size used

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-01-05 20:34:50 +02:00
parent 082e7bac47
commit 55d9ff7e35
2 changed files with 15 additions and 56 deletions
+1
View File
@@ -169,6 +169,7 @@ struct TRINITY_DLL_DECL Cell
template<class LOCK_TYPE, class T, class CONTAINER> void Visit(const CellLock<LOCK_TYPE> &, TypeContainerVisitor<T, CONTAINER> &visitor, Map &, float radius, float x_off, float y_off) const;
static CellArea CalculateCellArea(const WorldObject &obj, float radius);
static CellArea CalculateCellArea(float x, float y, float radius);
private:
template<class LOCK_TYPE, class T, class CONTAINER> void VisitCircle(const CellLock<LOCK_TYPE> &, TypeContainerVisitor<T, CONTAINER> &, Map &, const CellPair& , const CellPair& ) const;