From 0872f625909a70686bdc7fafad3cdd8e9ebe1627 Mon Sep 17 00:00:00 2001 From: Ara Date: Mon, 4 Dec 2023 19:02:35 +0600 Subject: [PATCH] refactor constants --- src/voxels/voxel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/voxels/voxel.h b/src/voxels/voxel.h index 66026f8b..65fe32db 100644 --- a/src/voxels/voxel.h +++ b/src/voxels/voxel.h @@ -3,12 +3,12 @@ #include "../typedefs.h" -#define BLOCK_DIR_X 0x1 -#define BLOCK_DIR_Y 0x0 -#define BLOCK_DIR_Z 0x2 +const int BLOCK_DIR_X = 0x1; +const int BLOCK_DIR_Y = 0x0; +const int BLOCK_DIR_Z = 0x2; // limited to 16 block orientations -#define BLOCK_ROT_MASK 0xF +const int BLOCK_ROT_MASK = 0xF; struct voxel { blockid_t id;