typo
forget that cell area used not only in cell visit functions --HG-- branch : trunk
This commit is contained in:
@@ -140,6 +140,11 @@ inline int CellHelper(const float radius)
|
||||
return (int)ceilf(radius/SIZE_OF_GRID_CELL);
|
||||
}
|
||||
|
||||
inline CellArea Cell::CalculateCellArea(const WorldObject &obj, float radius)
|
||||
{
|
||||
return Cell::CalculateCellArea(obj.GetPositionX(), obj.GetPositionY(), radius);
|
||||
}
|
||||
|
||||
inline CellArea Cell::CalculateCellArea(float x, float y, float radius)
|
||||
{
|
||||
if(radius <= 0.0f)
|
||||
|
||||
Reference in New Issue
Block a user