aboutsummaryrefslogtreecommitdiff
path: root/src/game/CellImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/CellImpl.h')
-rw-r--r--src/game/CellImpl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/CellImpl.h b/src/game/CellImpl.h
index 9dae6eeedcd..4e206b7a1e7 100644
--- a/src/game/CellImpl.h
+++ b/src/game/CellImpl.h
@@ -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)