From 386263c8c65ba140e85961775fb8858ed1e65bc4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 13 Apr 2023 02:47:34 +0200 Subject: a --- main/draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main') diff --git a/main/draw.cpp b/main/draw.cpp index 409164c6..0e0f7c68 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -134,12 +134,12 @@ void main_impl::draw_world() noexcept for (int16_t y = maxy; y >= miny; y--) for (int16_t x = maxx; x >= minx; x--) { - const chunk_coords_ pos{x, y, z}; - auto* c_ = _world.at(pos); + const chunk_coords_ ch{x, y, z}; + auto* c_ = _world.at(ch); if (!c_) continue; auto& c = *c_; - const with_shifted_camera_offset o{_shader, pos, {minx, miny}, {maxx, maxy}}; + const with_shifted_camera_offset o{_shader, ch, {minx, miny}, {maxx, maxy}}; if (check_chunk_visible(_shader.camera_offset(), sz)) { _wall_mesh.draw(_shader, c); -- cgit v1.2.3