From fbc36568af5d9142a45bee57323b8a5457a114f8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 4 May 2024 21:14:53 +0200 Subject: src: remove the tile_iterator class This is too crufty to bother with. --- test/save.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/save.cpp') diff --git a/test/save.cpp b/test/save.cpp index 2df1d296..bc3ed954 100644 --- a/test/save.cpp +++ b/test/save.cpp @@ -8,7 +8,6 @@ #include "src/light.hpp" #include "src/ground-atlas.hpp" #include "src/anim-atlas.hpp" -#include "src/tile-iterator.hpp" #include "src/nanosecond.inl" #include @@ -27,11 +26,10 @@ chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) auto table = loader.scenery("table1"); auto control_panel = loader.scenery("control panel (wall) 1"); - constexpr auto N = TILE_MAX_DIM; - for (auto [x, k, pt] : c) - x.ground() = { tiles, variant_t(k % tiles->num_tiles()) }; + for (auto k = 0u; k < TILE_COUNT; k++) + c[k].ground() = { tiles, variant_t(k % tiles->num_tiles()) }; control_panel.r = rotation::W; - constexpr auto K = N/2; + constexpr auto K = TILE_MAX_DIM/2; c[{K, K }].wall_north() = { metal2, 0 }; c[{K, K }].wall_west() = { metal2, 0 }; c[{K, K+1}].wall_north() = { metal2, 0 }; -- cgit v1.2.3