From 170deaccf7c9d26eedba0450c0b142741b79f2a1 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Tue, 3 Oct 2023 15:28:21 +0200 Subject: [PATCH] eliminate unused variables+stricter "free" condition --- include/chunk.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/chunk.hpp b/include/chunk.hpp index 2977751..1be54e2 100644 --- a/include/chunk.hpp +++ b/include/chunk.hpp @@ -25,11 +25,12 @@ namespace Chunk constexpr uint16_t CHUNK_STATE_GENERATED = 1; constexpr uint16_t CHUNK_STATE_MESHED = 2; - constexpr uint16_t CHUNK_STATE_OUTOFVISION = 16; - constexpr uint16_t CHUNK_STATE_UNLOADED = 32; - constexpr uint16_t CHUNK_STATE_EMPTY = 64; - constexpr uint16_t CHUNK_STATE_IN_GENERATION_QUEUE = 128; - constexpr uint16_t CHUNK_STATE_IN_MESHING_QUEUE = 256; + constexpr uint16_t CHUNK_STATE_OUTOFVISION = 4; + constexpr uint16_t CHUNK_STATE_UNLOADED = 8; + constexpr uint16_t CHUNK_STATE_EMPTY = 16; + constexpr uint16_t CHUNK_STATE_IN_GENERATION_QUEUE = 32; + 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);