diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-04 21:14:53 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:24:48 +0200 |
commit | fbc36568af5d9142a45bee57323b8a5457a114f8 (patch) | |
tree | 8d838f0ad42823e4816a5ad4cdd66d03434ba6ad /test/save.cpp | |
parent | 78ca913d82a0c30e978b69a8ed2685d92ae9eb36 (diff) |
src: remove the tile_iterator class
This is too crufty to bother with.
Diffstat (limited to 'test/save.cpp')
-rw-r--r-- | test/save.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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 <Corrade/Utility/Path.h> @@ -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 }; |