From 498889c47c0c348e102fe3bbb30e9a5ca2c999d6 Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 9 Sep 2025 22:51:43 +0200 Subject: [PATCH] fix: stored I tetrominos read as empty. --- src/tetris.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tetris.c b/src/tetris.c index f826798..f6ab3ae 100644 --- a/src/tetris.c +++ b/src/tetris.c @@ -74,7 +74,8 @@ void tetris_place(u8 *restrict *restrict rows, u8 tetromino, uint x, uint y) { uint *pos = (uint[8]){x, y, x, y, x, y, x, y}; uint *end = pos + 8; tetris_get_blocks(tetromino, pos); - tetromino &= 7; /* strip rotation data */ + tetromino &= 7; /* strip rotation data */ + tetromino |= 0x80; /* set an undefined bit, to signify there is data here. */ for (; pos < end; pos += 2) rows[*(pos + 1)][*pos] = tetromino; }