From ee818eb71b40721b9158020f799c11519a4496b8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 9 Aug 2024 10:35:31 +0200 Subject: src: fix typo in wall depth value --- src/chunk-walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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}; -- cgit v1.2.3