[8526] Added upper limit for cell search radius, affect max visibility and AOE spell range. Set to 333 yards.

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2009-09-22 00:23:41 +03:00
parent 9a7708491f
commit 284adafbeb
2 changed files with 4 additions and 1 deletions

View file

@ -181,6 +181,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);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8525"
#define REVISION_NR "8526"
#endif // __REVISION_NR_H__