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 /editor | |
parent | 78ca913d82a0c30e978b69a8ed2685d92ae9eb36 (diff) |
src: remove the tile_iterator class
This is too crufty to bother with.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/update.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index 7fdcd77e..4d1cb3ad 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -11,7 +11,6 @@ #include "floormat/events.hpp" #include "floormat/main.hpp" #include "src/critter.hpp" -#include "src/tile-iterator.hpp" #include "src/nanosecond.hpp" #include "src/timer.hpp" #include "keys.hpp" @@ -27,8 +26,8 @@ void app::maybe_initialize_chunk_([[maybe_unused]] const chunk_coords_& pos, chu { auto floor1 = loader.ground_atlas("floor-tiles"); - for (auto [x, k, pt] : c) - x.ground() = { floor1, variant_t(k % floor1->num_tiles()) }; + for (auto k = 0u; k < TILE_COUNT; k++) + c[k].ground() = { floor1, variant_t(k % floor1->num_tiles()) }; c.mark_modified(); } |