summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-18 01:45:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-19 14:32:18 +0100
commit151e6911a8aa56749edbbf0c15ab04752d96c2f3 (patch)
tree06fcf3d6551d1945b5717458aa09222c947ede04 /main
parente77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (diff)
ccc
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index b8063824..5831a0b7 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -97,10 +97,10 @@ void main_impl::draw_world() noexcept
for (int16_t x = maxx; x >= minx; x--)
{
const chunk_coords_ ch{x, y, z};
- auto* c_ = _world.at(ch);
- if (!c_)
+ auto* cʹ = _world.at(ch);
+ if (!cʹ)
continue;
- auto& c = *c_;
+ auto& c = *cʹ;
bind();
const with_shifted_camera_offset o{_shader, ch, {minx, miny}, {maxx, maxy}};
@@ -124,10 +124,10 @@ void main_impl::draw_world() noexcept
_shader.set_tint({1, 1, 1, 1});
const chunk_coords_ pos{x, y, z};
- auto* c_ = _world.at(pos);
- if (!c_)
+ auto* cʹ = _world.at(pos);
+ if (!cʹ)
continue;
- auto& c = *c_;
+ auto& c = *cʹ;
const with_shifted_camera_offset o{_shader, pos, {minx, miny}, {maxx, maxy}};
if (check_chunk_visible(_shader.camera_offset(), sz))
_anim_mesh.draw(_shader, sz, c, _clickable_scenery, _do_render_vobjs);