diff options
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 4acdd471..9dc5ce4e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -75,7 +75,7 @@ chunk app::make_test_chunk() chunk c; 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()) }; + x.ground_image = { atlas, (std::uint8_t)(k % atlas->num_tiles().product()) }; }); constexpr auto K = N/2; c[{K, K }].wall_north = { wall1, 0 }; |