From 1f5f2e5fb2d128a4cc3176a7d82f22ad6641f258 Mon Sep 17 00:00:00 2001 From: Ara Date: Tue, 5 Dec 2023 08:19:39 +0600 Subject: [PATCH] Quickfix BLOCK_VOID constant --- src/constants.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.h b/src/constants.h index a38b749f..4162d5fc 100644 --- a/src/constants.h +++ b/src/constants.h @@ -1,7 +1,7 @@ #ifndef SRC_CONSTANTS_H_ #define SRC_CONSTANTS_H_ -#include +#include #include "typedefs.h" const int ENGINE_VERSION_MAJOR = 0; @@ -15,7 +15,7 @@ const int CHUNK_D = 16; const int CHUNK_VOL = (CHUNK_W * CHUNK_H * CHUNK_D); /* BLOCK_VOID is block id used to mark non-existing voxel (voxel of missing chunk) */ -const blockid_t BLOCK_VOID = UCHAR_MAX; +const blockid_t BLOCK_VOID = std::numeric_limits::max(); inline uint vox_index(int x, int y, int z, int w=CHUNK_W, int d=CHUNK_D) { return (y * d + z) * w + x;