summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 12:01:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 12:21:26 +0200
commit0cd263af59f256da2d2f3a77be264d5e64c1ec5d (patch)
treef89935707693657ac804aef27c6b188ed66f4d30 /draw
parentd1984938e4f0cbc24b7b8cc6e219fa873d39418a (diff)
mplement z levels
Diffstat (limited to 'draw')
-rw-r--r--draw/anim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index 119bd6c6..2612c110 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -44,7 +44,7 @@ void anim_mesh::add_clickable(tile_shader& shader, const Vector2i& win_size,
.dest = { offset, offset + Vector2i(f.size) },
.bitmask = a.bitmask(),
.e = s_,
- .depth = s.ordinal(),
+ .depth = s.ordinal() + (float)s.coord.z() * TILE_COUNT,
.slope = data.slope,
.bb_min = data.bb_min, .bb_max = data.bb_max,
.stride = a.info().pixel_size[0],