From df2073a5692c991e4fc43c926334983997d272af Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 21 Oct 2022 21:11:33 +0200 Subject: lots of refactoring types crap --- main/update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/update.cpp') diff --git a/main/update.cpp b/main/update.cpp index fac359e8..00e59434 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -7,7 +7,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 != pt.y && (pt.x == N/2 || pt.y == N/2) ? floor2 : floor1; - x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles()) }; + x.ground_image = { atlas, k % atlas->num_tiles() }; } constexpr auto K = N/2; c[{K, K }].wall_north = { wall1, 0 }; -- cgit v1.2.3