From f5c387da470ae43a2c8aff75b419e784c8bb3bc5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 14 Apr 2023 11:58:23 +0200 Subject: it probably renders correctly now --- draw/anim.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'draw') diff --git a/draw/anim.cpp b/draw/anim.cpp index b24dffa7..8ca03b87 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -89,8 +89,7 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, st else { const auto depth0 = e.depth_offset(); - const auto depth1 = depth0[1]*TILE_MAX_DIM + depth0[0]; - const auto depth = tile_shader::depth_value(e.coord.local(), depth1); + const auto depth = tile_shader::depth_value(e.coord.local(), depth0); draw(shader, atlas, e.r, e.frame, e.coord.local(), e.offset, depth); } } -- cgit v1.2.3