aboutsummaryrefslogtreecommitdiff
path: root/src/games/tetris/Tetromino.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/games/tetris/Tetromino.cpp')
-rw-r--r--src/games/tetris/Tetromino.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/games/tetris/Tetromino.cpp b/src/games/tetris/Tetromino.cpp
index 416a8df..a3ec9dd 100644
--- a/src/games/tetris/Tetromino.cpp
+++ b/src/games/tetris/Tetromino.cpp
@@ -1,4 +1,5 @@
#include <games/tetris/Tetromino.hpp>
+#include <games/Game.hpp>
#include <renderer/Renderer.hpp>
#include <random>
@@ -218,10 +219,9 @@ Tetromino::Draw(Id id, int32_t ori, V2F32 pos, float scale)
V2F32 local_dim = {tetromino_size, tetromino_size};
- V3F32 world_pos = {
+ V2F32 world_pos = {
pos.x + local_pos.x,
pos.y + local_pos.y,
- 1.0f
};
V2F32 world_dim = local_dim;
Rectangle world_rect = {
@@ -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, world_pos.z);
+ g_renderer.PushRectangle(world_rect, color, Game::z_layer1);
}
}
}