From 100f35c5129b28c12aa776b5664a9e29f1f551bf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 7 Sep 2023 09:05:18 +0200 Subject: chunk: add hack to prevent character feet clipping --- test/json.cpp | 2 +- test/tile-iter.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/json.cpp b/test/json.cpp index d9498e49..9c638530 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -23,7 +23,7 @@ static chunk make_test_chunk() tiles = loader.tile_atlas("tiles", {8, 5}, pass_mode::pass); constexpr auto N = TILE_MAX_DIM; world w; - chunk c{w}; + chunk c{w, {}}; for (auto [x, k, pt] : c) { x.ground() = { tiles, variant_t(k % tiles->num_tiles()) }; } diff --git a/test/tile-iter.cpp b/test/tile-iter.cpp index 85ad8797..5248f7ce 100644 --- a/test/tile-iter.cpp +++ b/test/tile-iter.cpp @@ -15,7 +15,7 @@ void test_app::test_tile_iter() // NOLINT(readability-function-size) if (always_false()) { world w; - const chunk c{w}; + const chunk c{w, {}}; for ([[maybe_unused]] const auto& [x, k, pt] : c) static_assert(std::is_same_v); for ([[maybe_unused]] const auto [x, k, pt] : c) @@ -26,7 +26,7 @@ void test_app::test_tile_iter() // NOLINT(readability-function-size) if (always_false()) { world w; - chunk c{w}; + chunk c{w, {}}; for ([[maybe_unused]] auto [x, k, pt] : c) static_assert(std::is_same_v); for ([[maybe_unused]] const auto [x, k, pt] : c) -- cgit v1.2.3