mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
fix: missing extended block size limit check
This commit is contained in:
parent
9eb85bd2dd
commit
9628177698
2 changed files with 18 additions and 2 deletions
|
|
@ -33,6 +33,8 @@ inline constexpr int CHUNK_W = 16;
|
|||
inline constexpr int CHUNK_H = 256;
|
||||
inline constexpr int CHUNK_D = 16;
|
||||
|
||||
inline constexpr int EXTENDED_BLOCK_LIMIT = CHUNK_W; // must not be greater than chunk width and depth
|
||||
|
||||
inline constexpr uint VOXEL_USER_BITS = 8;
|
||||
inline constexpr uint VOXEL_USER_BITS_OFFSET = sizeof(blockstate_t)*8-VOXEL_USER_BITS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue