diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 21:06:06 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 21:06:06 -0400 |
commit | 38e6691fd3b713fe72cb955214c59cdee8b435b4 (patch) | |
tree | 52b789573a5bfac3263d8d2e2343f73fd8c38c43 | |
parent | 0b2283c5613fef0bf1a9d82e2f007f27894118d8 (diff) | |
download | ether-38e6691fd3b713fe72cb955214c59cdee8b435b4.tar.gz ether-38e6691fd3b713fe72cb955214c59cdee8b435b4.tar.bz2 ether-38e6691fd3b713fe72cb955214c59cdee8b435b4.zip |
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.
-rw-r--r-- | src/map.h | 4 |
1 files 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: | |||
177 | } | 177 | } |
178 | 178 | ||
179 | // Destroy any completely unlit chunks. | 179 | // Destroy any completely unlit chunks. |
180 | for (size_t chunkIndex : touchedChunks) { | 180 | /*for (size_t chunkIndex : touchedChunks) { |
181 | if (chunks_[chunkIndex].litTiles == 0) { | 181 | if (chunks_[chunkIndex].litTiles == 0) { |
182 | chunkByPos_[chunks_[chunkIndex].x].erase(chunks_[chunkIndex].y); | 182 | chunkByPos_[chunks_[chunkIndex].x].erase(chunks_[chunkIndex].y); |
183 | freeList_.push_back(chunkIndex); | 183 | freeList_.push_back(chunkIndex); |
184 | } | 184 | } |
185 | } | 185 | }*/ |
186 | } | 186 | } |
187 | 187 | ||
188 | leftmostChunk_ = newLeftChunk; | 188 | leftmostChunk_ = newLeftChunk; |