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. --- editor/update.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'editor') 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(); } -- cgit v1.2.3