diff options
author | 2025-05-22 00:01:51 +0200 | |
---|---|---|
committer | 2025-05-22 00:01:51 +0200 | |
commit | c07d2adb16532691e22a34d11ad87b56a4dc1a89 (patch) | |
tree | 3009daf2f2e2a336912305a3735c166969914450 /src/main/game/cell.c | |
parent | 8d3d0a98d71181d5f65b4f08d40976a9824ba68a (diff) | |
download | tris-c07d2adb16532691e22a34d11ad87b56a4dc1a89.tar.gz tris-c07d2adb16532691e22a34d11ad87b56a4dc1a89.zip |
Change the logic on drawing signs
Diffstat (limited to 'src/main/game/cell.c')
-rw-r--r-- | src/main/game/cell.c | 3 |
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; } |