mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
optimize clearing lines by using pointers to define the row order
This commit is contained in:
@@ -19,7 +19,7 @@ static void set_shape_i(Row* row, const ShapeId id, const uint8_t pos_x) {
|
||||
|
||||
for (uint8_t x = 0; x < SHAPE_WIDTH; x++)
|
||||
if (is_set(shape_row, x))
|
||||
row[y].columns[x + pos_x] = colour;
|
||||
row[y][x + pos_x] = colour;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user