From d80d210d826e411a6e480ed9da9c1f0ea3345825 Mon Sep 17 00:00:00 2001 From: maximius Date: Tue, 6 Oct 2009 18:43:21 -0700 Subject: [PATCH] *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 --- src/game/CellImpl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/CellImpl.h b/src/game/CellImpl.h index d86091ee40..ff2b0343c6 100644 --- a/src/game/CellImpl.h +++ b/src/game/CellImpl.h @@ -233,6 +233,9 @@ Cell::Visit(const CellLock &l, TypeContainerVisitor &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);