diff --git a/src/util/ThreadPool.hpp b/src/util/ThreadPool.hpp index dd692d203..2c743e37d 100644 --- a/src/util/ThreadPool.hpp +++ b/src/util/ThreadPool.hpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include #include diff --git a/src/voxels/Chunk.hpp b/src/voxels/Chunk.hpp index 941034073..4b2fa193d 100644 --- a/src/voxels/Chunk.hpp +++ b/src/voxels/Chunk.hpp @@ -29,16 +29,16 @@ public: voxel voxels[CHUNK_VOL] {}; std::shared_ptr lightmap; struct { - bool modified : 1; - bool ready : 1; - bool loaded : 1; - bool lighted : 1; - bool unsaved : 1; - bool loadedLights : 1; - bool entities : 1; - bool blocksData : 1; - bool dirtyHeights : 1; - bool inventoriesRemoved : 1; + bool modified : 1; // is chunk mesh should be updated + bool ready : 1; // is chunk ready for modifications (loaded / generated) + bool loaded : 1; // was chunk loaded from region + bool lighted : 1; // is lights built (chunk ready to be visualized) + bool unsaved : 1; // does chunk contain unsaved changes + bool loadedLights : 1; // was lights loaded from cache + bool entities : 1; // does chunk contain entities list changes + bool blocksData : 1; // does chunk contain block fields changes + bool dirtyHeights : 1; // is chunk bottom, top should be recalculated + bool inventoriesRemoved : 1; // was block inventories removed since the last save } flags {}; uint64_t lastRandomTickId = -1;