summaryrefslogtreecommitdiff
path: root/src/main/game/cell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/game/cell.c')
-rw-r--r--src/main/game/cell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/game/cell.c b/src/main/game/cell.c
index c8151b2..9227da5 100644
--- a/src/main/game/cell.c
+++ b/src/main/game/cell.c
@@ -47,6 +47,9 @@ cell_new(float left, float right, float top, float bottom)
cell->bottom = bottom;
cell->filled = false;
+ cell->cx = (cell->right + cell->left) / 2;
+ cell->cy = (cell->top + cell->bottom) / 2;
+
return cell;
}