From c07d2adb16532691e22a34d11ad87b56a4dc1a89 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 22 May 2025 00:01:51 +0200 Subject: Change the logic on drawing signs --- src/main/game/cell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/game/cell.c') 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; } -- cgit v1.2.3