From 151e6911a8aa56749edbbf0c15ab04752d96c2f3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 18 Mar 2024 01:45:19 +0100 Subject: ccc --- editor/draw.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'editor/draw.cpp') diff --git a/editor/draw.cpp b/editor/draw.cpp index 40ba0235..d1e18292 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -122,10 +122,10 @@ void app::draw_collision_boxes() for (int16_t x = minx; x <= maxx; x++) { 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ʹ; c.ensure_passability(); const with_shifted_camera_offset o{shader, pos, {minx, miny}, {maxx, maxy}}; if (floormat_main::check_chunk_visible(shader.camera_offset(), sz)) @@ -170,10 +170,10 @@ void app::draw_collision_boxes() for (int16_t x = minx; x <= maxx; x++) { const chunk_coords_ c_pos{x, y, _z_level}; - auto* c_ = world.at(c_pos); - if (!c_) + auto* cʹ = world.at(c_pos); + if (!cʹ) continue; - auto& c = *c_; + auto& c = *cʹ; c.ensure_passability(); const with_shifted_camera_offset o{shader, c_pos, {minx, miny}, {maxx, maxy}}; if (floormat_main::check_chunk_visible(shader.camera_offset(), sz)) -- cgit v1.2.3