Skip to content

Commit

Permalink
src: fix typo in wall depth value
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Aug 9, 2024
1 parent 8b89d83 commit 8361dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chunk-walls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 8361dbc

Please sign in to comment.