Skip to content

Commit 8361dbc

Browse files
committed
src: fix typo in wall depth value
1 parent 8b89d83 commit 8361dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chunk-walls.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void do_wall_part(const Wall::Group& group, wall_atlas& A,
253253
{
254254
const auto frames = A.frames(dir.wall);
255255
const auto depth_offset = depth_offset_for_group<Group_::corner, IsWest>();
256-
const auto depth = tile_shader::depth_value(!IsWest ? (float)pos.x : (float)pos.x - 1, depth_offset);
256+
const auto depth = tile_shader::depth_value(!IsWest ? (float)pos.x : (float)pos.x - 1, (float)pos.y, depth_offset);
257257
const auto frame = variant_from_frame(frames, coord, variant_2, IsWest);
258258
fm_assert(frame.size.x() > Depth);
259259
auto start = frame.offset + Vector2ui{frame.size.x(), 0} - Vector2ui{Depth, 0};

0 commit comments

Comments
 (0)