From 9faf1193a022ebec79877c7cfaeaaaa0023f8cdb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Aug 2024 19:17:13 +0200 Subject: fix clang-tidy warning --- src/chunk-walls.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index a065ff80..1fc67a62 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -152,18 +152,17 @@ Frame variant_from_frame(ArrayView frames, global_coords coord, var } template -void do_wall_part(const Group& group, wall_atlas& A, - chunk& c, chunk::wall_stuff& W, +void do_wall_part(const Group& group, wall_atlas& A, chunk& c, chunk::wall_stuff& W, Array>& vertexes, - global_coords coord, uint32_t& N, uint32_t t) + global_coords coord, uint32_t& N, uint32_t tile) { if (!group.is_defined) return; - const uint32_t k = t*2 + IsWest; + const uint32_t k = tile*2 + IsWest; constexpr auto D = IsWest ? Direction_::W : Direction_::N; const auto variant_2 = W.variants[k]; - const auto pos = local_coords{t}; + const auto pos = local_coords{tile}; const auto center = Vector3(pos) * TILE_SIZE; const auto& dir = A.calc_direction(D); const auto Depth = A.info().depth; -- cgit v1.2.3