*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:
@@ -233,6 +233,9 @@ Cell::Visit(const CellLock<LOCK_TYPE> &l, TypeContainerVisitor<T, CONTAINER> &vi
|
|||||||
m.Visit(l, visitor);
|
m.Visit(l, visitor);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//lets limit the upper value for search radius
|
||||||
|
if(radius > 333.0f)
|
||||||
|
radius = 333.0f;
|
||||||
|
|
||||||
//lets calculate object coord offsets from cell borders.
|
//lets calculate object coord offsets from cell borders.
|
||||||
CellArea area = Cell::CalculateCellArea(obj, radius);
|
CellArea area = Cell::CalculateCellArea(obj, radius);
|
||||||
|
|||||||
Reference in New Issue
Block a user