Merge pull request #34 from A-lex-Ra/main

Лёгкий рефакторинг, взят курс на избавление от define`ов
This commit is contained in:
MihailRis 2023-12-04 18:05:25 +03:00 • committed by GitHub
commit 24b3048c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 124 additions and 113 deletions

View file

@ -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;