summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-12 19:18:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-12 19:18:07 +0200
commit31204d5821f63d1c1c78053e715bbb3ec2af1c6d (patch)
treeed38856e9e586e488b0c7147e80f3afa536f1ea2
parentf4e8209510ccafa60dda67e416b41bc47e1ae09a (diff)
a
-rw-r--r--main/draw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index a4291b7d..028f6ac6 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -148,9 +148,9 @@ void main_impl::draw_world() noexcept
GL::Renderer::setDepthMask(false);
- for (int8_t z = z_max; z >= z_min; z--)
- for (int16_t y = maxy; y >= miny; y--)
- for (int16_t x = maxx; x >= minx; x--)
+ for (int8_t z = z_min; z <= z_max; z++)
+ for (int16_t y = miny; y <= maxy; y++)
+ for (int16_t x = minx; x <= maxx; x++)
{
const chunk_coords_ pos{x, y, z};
auto* c_ = _world.at(pos);