Skip to content

Commit

Permalink
Added upper limit for cell search radius, affect max visibility and A…
Browse files Browse the repository at this point in the history
…OE spell range. Set to 333 yards.

Signed-off-by: Ambal <pogrebniak@gala.net>

(backported from commit 837017e)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
Ambal authored and VladimirMangos committed Sep 22, 2009
1 parent f97e292 commit 14f6ce3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/CellImpl.h
Expand Up @@ -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);
Expand Down

0 comments on commit 14f6ce3

Please sign in to comment.