aboutsummaryrefslogtreecommitdiff
path: root/src/games
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-11-25 02:14:20 +0100
committerfschildt <florian.schildt@protonmail.com>2025-11-25 02:14:20 +0100
commit746819470de51c4f7331b64980f3da9bfb750a12 (patch)
tree130b932c99c82509b248bfeb573eed053fb5ff3b /src/games
parentd82b2f074b33a232ab23c3f4b9e9f102f9c58e28 (diff)
tetris: fix z-values
Diffstat (limited to 'src/games')
-rw-r--r--src/games/tetris/Board.cpp2
-rw-r--r--src/games/tetris/Tetromino.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/games/tetris/Board.cpp b/src/games/tetris/Board.cpp
index 6188eb8..a1ab72a 100644
--- a/src/games/tetris/Board.cpp
+++ b/src/games/tetris/Board.cpp
@@ -145,7 +145,7 @@ Board::Draw(int32_t level)
Color color = Tetromino::GetColor(tetromino_id);
- g_renderer.PushRectangle(world_rect, color, Game::z_layer1);
+ g_renderer.PushRectangle(world_rect, color, Game::z_layer2);
}
}
}
diff --git a/src/games/tetris/Tetromino.cpp b/src/games/tetris/Tetromino.cpp
index a3ec9dd..ad75161 100644
--- a/src/games/tetris/Tetromino.cpp
+++ b/src/games/tetris/Tetromino.cpp
@@ -233,7 +233,7 @@ Tetromino::Draw(Id id, int32_t ori, V2F32 pos, float scale)
Color color = GetColor(id);
- g_renderer.PushRectangle(world_rect, color, Game::z_layer1);
+ g_renderer.PushRectangle(world_rect, color, Game::z_layer2);
}
}
}