From f0c7d4d241d7b415e4ba0ef2c0198e127d789ef4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 4 Oct 2022 18:57:29 +0200 Subject: a --- main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index fa312c6d..0f573dc5 100644 --- a/main.cpp +++ b/main.cpp @@ -83,9 +83,11 @@ chunk app::make_test_chunk() const auto& atlas = pt.x > N/2 && pt.y >= N/2 ? floor2 : floor1; x.ground_image = { atlas, (std::uint8_t)(k % atlas->size()) }; }); - c[{N/2 + 1, N/2}].wall_north = { wall1, 0 }; - c[{N/2, N/2}].wall_north = { wall1, 0 }; - c[{N/2, N/2}].wall_west = { wall1, 0 }; + constexpr auto C = N/2; + c[{C, C}].wall_north = { wall1, 0 }; + c[{C, C}].wall_west = { floor1, 0 }; + c[{C, C+1}].wall_north = { wall1, 0 }; + c[{C+1, C}].wall_west = { floor1, 0 }; return c; } -- cgit v1.2.3