Core/Gridmonster: Increased upper value for search radius to size of grid
This commit is contained in:
@@ -183,8 +183,8 @@ Cell::Visit(const CellPair& standing_cell, TypeContainerVisitor<T, CONTAINER> &v
|
||||
return;
|
||||
}
|
||||
//lets limit the upper value for search radius
|
||||
if (radius > 333.0f)
|
||||
radius = 333.0f;
|
||||
if (radius > SIZE_OF_GRIDS)
|
||||
radius = SIZE_OF_GRIDS;
|
||||
|
||||
//lets calculate object coord offsets from cell borders.
|
||||
CellArea area = Cell::CalculateCellArea(x_off, y_off, radius);
|
||||
|
||||
Reference in New Issue
Block a user