summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-08-09 10:35:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-08-11 11:07:55 +0200
commitee818eb71b40721b9158020f799c11519a4496b8 (patch)
tree1e597c226fa8f5122f4510a212b25a8207946b84 /src
parenta17f14bcac7e90f1e4526a62ae67175128c5d927 (diff)
src: fix typo in wall depth value
Diffstat (limited to 'src')
-rw-r--r--src/chunk-walls.cpp2
1 files changed, 1 insertions, 1 deletions
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<Group_::corner, IsWest>();
- 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};