aboutsummaryrefslogtreecommitdiff
path: root/src/game/Cell.h
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-01-05 20:34:50 +0200
committersilver1ce <none@none>2010-01-05 20:34:50 +0200
commit55d9ff7e35295e60a30e7d026da6883e57c690fd (patch)
treeeb92ae97e53949cd28db77001b7d85c9bb658814 /src/game/Cell.h
parent082e7bac479137a8b71e99f0ba5e1fafad7e5d1d (diff)
update cell search methtod (visiting grids by coords)
the old way will miss the grids when non standart cell size used --HG-- branch : trunk
Diffstat (limited to 'src/game/Cell.h')
-rw-r--r--src/game/Cell.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Cell.h b/src/game/Cell.h
index 5b9f62bdc64..802c7bd8c45 100644
--- a/src/game/Cell.h
+++ b/src/game/Cell.h
@@ -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;