From b47d96ccd1ef1f424154511f7294ab969bd4f5ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 4 Oct 2022 18:49:16 +0200 Subject: a --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 8a23b549..fa312c6d 100644 --- a/main.cpp +++ b/main.cpp @@ -79,8 +79,8 @@ chunk app::make_test_chunk() { constexpr auto N = TILE_MAX_DIM; chunk c; - c.foreach_tile([&, this](tile& x, std::size_t k, local_coords) { - const auto& atlas = floor1; + c.foreach_tile([&, this](tile& x, std::size_t k, local_coords pt) { + 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 }; -- cgit v1.2.3