Fix row not clearing bug by checking all rows
This commit is contained in:
parent
0e76abdcc7
commit
4f53a00f41
1 changed files with 1 additions and 1 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue