diff --git a/switcher.c b/switcher.c index 51bb399..40a2fba 100644 --- a/switcher.c +++ b/switcher.c @@ -360,7 +360,8 @@ static void draw_tile(enum palette tile[], size_t x, size_t y) { for (size_t ty = 0; ty < TILE_SIDE; ty++) { for (size_t tx = 0; tx < TILE_SIDE; tx++) { enum palette pixel = tile[ty * TILE_SIDE + tx]; - playfield[(y + ty) * PLAYFIELD_SIDE + x + tx] = pixel; + if (pixel != BG) + playfield[(y + ty) * PLAYFIELD_SIDE + x + tx] = pixel; } } }