From 0cd263af59f256da2d2f3a77be264d5e64c1ec5d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Apr 2023 12:01:42 +0200 Subject: mplement z levels --- draw/anim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draw') 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], -- cgit v1.2.3