diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-13 02:47:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-13 02:47:34 +0200 |
commit | 386263c8c65ba140e85961775fb8858ed1e65bc4 (patch) | |
tree | 8bdb97bb15c1ea187b99e8a52e020cf532aef833 /main/draw.cpp | |
parent | e1d3607fb443109f1ae49a4765b9e2c5a7998a1b (diff) |
a
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |