From 13b1ada087bb1feba5e96f7bfe722dcaeea7071f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 18 Oct 2022 09:53:43 +0200 Subject: a --- main/update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/update.cpp b/main/update.cpp index 9a65e182..4346f7af 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -6,7 +6,7 @@ void app::make_test_chunk(chunk& c) { constexpr auto N = TILE_MAX_DIM; for (auto [x, k, pt] : c) { - const auto& atlas = pt.x == N/2 || pt.y == N/2 ? floor2 : floor1; + const auto& atlas = pt.x != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1; x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles().product()) }; } constexpr auto K = N/2; -- cgit v1.2.3