From 4f53a00f41e81fad55a1c02e8f063301de197c43 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 5 Mar 2022 13:38:50 -0800 Subject: [PATCH] Fix row not clearing bug by checking all rows --- src/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index 7be3dbe..7ec90de 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -260,7 +260,7 @@ int main() grid[tile.y][tile.x] = block.type->tile_type; } // Check for completed rows - for (int y = block.position.y; y < block.position.y + block.type->grid.size(); y++) { + for (int y = 0; y < GRID_HEIGHT; y++) { bool completed = true; for (int x = 0; x < GRID_WIDTH; x++) { if (!grid[y][x]) {