*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
This commit is contained in:
maximius
2009-10-06 18:43:21 -07:00
parent 040cc4630d
commit d80d210d82
+3
View File
@@ -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);