eliminate unused variables+stricter "free" condition

fix-multithread
EmaMaker 2023-10-03 15:28:21 +02:00
parent da6ceeb605
commit 170deaccf7
1 changed files with 6 additions and 5 deletions

View File

@ -25,11 +25,12 @@ namespace Chunk
constexpr uint16_t CHUNK_STATE_GENERATED = 1; constexpr uint16_t CHUNK_STATE_GENERATED = 1;
constexpr uint16_t CHUNK_STATE_MESHED = 2; constexpr uint16_t CHUNK_STATE_MESHED = 2;
constexpr uint16_t CHUNK_STATE_OUTOFVISION = 16; constexpr uint16_t CHUNK_STATE_OUTOFVISION = 4;
constexpr uint16_t CHUNK_STATE_UNLOADED = 32; constexpr uint16_t CHUNK_STATE_UNLOADED = 8;
constexpr uint16_t CHUNK_STATE_EMPTY = 64; constexpr uint16_t CHUNK_STATE_EMPTY = 16;
constexpr uint16_t CHUNK_STATE_IN_GENERATION_QUEUE = 128; constexpr uint16_t CHUNK_STATE_IN_GENERATION_QUEUE = 32;
constexpr uint16_t CHUNK_STATE_IN_MESHING_QUEUE = 256; constexpr uint16_t CHUNK_STATE_IN_MESHING_QUEUE = 64;
constexpr uint16_t CHUNK_STATE_IN_DELETING_QUEUE = 128;
int coord3DTo1D(int x, int y, int z); int coord3DTo1D(int x, int y, int z);