From 38e6691fd3b713fe72cb955214c59cdee8b435b4 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 20 Mar 2022 21:06:06 -0400 Subject: no longer destroying completely unlit chunks this was messing up in conjunction with the optimisation where we only tick the outermost ring of chunks upon doing a map load, with the effect that chunks other than the centre one were filled with unticked data. --- src/map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.h b/src/map.h index fe3270c..4bb9910 100644 --- a/src/map.h +++ b/src/map.h @@ -177,12 +177,12 @@ public: } // Destroy any completely unlit chunks. - for (size_t chunkIndex : touchedChunks) { + /*for (size_t chunkIndex : touchedChunks) { if (chunks_[chunkIndex].litTiles == 0) { chunkByPos_[chunks_[chunkIndex].x].erase(chunks_[chunkIndex].y); freeList_.push_back(chunkIndex); } - } + }*/ } leftmostChunk_ = newLeftChunk; -- cgit 1.4.1