diff options
author | maximius <none@none> | 2009-10-06 18:43:21 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-06 18:43:21 -0700 |
commit | d80d210d826e411a6e480ed9da9c1f0ea3345825 (patch) | |
tree | 858aa84995994cc97432569c33923d0892bb6d4b /src | |
parent | 040cc4630df29a1e6197152fe609708bd7e22ff6 (diff) |
*Merge [8526] Added upper limit for cell search radius, affect max visibility and AOE spell range. Set to 333 yards. Author: Ambal
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/CellImpl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/CellImpl.h b/src/game/CellImpl.h index d86091ee40a..ff2b0343c69 100644 --- a/src/game/CellImpl.h +++ b/src/game/CellImpl.h @@ -233,6 +233,9 @@ Cell::Visit(const CellLock<LOCK_TYPE> &l, TypeContainerVisitor<T, CONTAINER> &vi m.Visit(l, visitor); return; } + //lets limit the upper value for search radius + if(radius > 333.0f) + radius = 333.0f; //lets calculate object coord offsets from cell borders. CellArea area = Cell::CalculateCellArea(obj, radius); |