diff options
Diffstat (limited to 'src/main/game/game.c')
-rw-r--r-- | src/main/game/game.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/game/game.c b/src/main/game/game.c index 25de722..2e2db8f 100644 --- a/src/main/game/game.c +++ b/src/main/game/game.c @@ -77,7 +77,8 @@ loop_cells(list_t *cells, float x, float y) list_node_t *current = cells->head; do { Cell *cell = current->data; - if (cell_within_bounds(cell, x, y)) { + if (!cell_is_filled(cell) && cell_within_bounds(cell, x, y)) { + cell_set_filled(cell, true); } current = current->next; } while (current != NULL); |