From 8361dbc4e954f7116243296142f1216d127baea6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 9 Aug 2024 10:35:31 +0200 Subject: [PATCH] src: fix typo in wall depth value --- src/chunk-walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index a948a297..e3a537b3 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -253,7 +253,7 @@ void do_wall_part(const Wall::Group& group, wall_atlas& A, { const auto frames = A.frames(dir.wall); const auto depth_offset = depth_offset_for_group(); - const auto depth = tile_shader::depth_value(!IsWest ? (float)pos.x : (float)pos.x - 1, depth_offset); + const auto depth = tile_shader::depth_value(!IsWest ? (float)pos.x : (float)pos.x - 1, (float)pos.y, depth_offset); const auto frame = variant_from_frame(frames, coord, variant_2, IsWest); fm_assert(frame.size.x() > Depth); auto start = frame.offset + Vector2ui{frame.size.x(), 0} - Vector2ui{Depth, 0};