From 671771cfc54b47f7393caa7c3fab83eb09884d27 Mon Sep 17 00:00:00 2001 From: johannes Date: Fri, 3 May 2024 13:32:31 +0200 Subject: changed all binary numbers to hex --- src/demo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index 250cd5f..c242447 100644 --- a/src/demo.c +++ b/src/demo.c @@ -6,13 +6,13 @@ #include #include -#define CHUNK_TICK_MASK 0b10000000 -#define CHUNK_TICK_KEYFRAME_MASK 0b01000000 -#define CHUNK_TICK_INLINE_MASK 0b00100000 -#define CHUNK_TICK_DELTA_V3_MASK 0b00111111 -#define CHUNK_TICK_DELTA_V5_MASK 0b00011111 -#define CHUNK_NORMAL_TYPE_MASK 0b01100000 -#define CHUNK_NORMAL_SIZE_MASK 0b00011111 +#define CHUNK_TICK_MASK 0x80 // 0b10000000 +#define CHUNK_TICK_KEYFRAME_MASK 0x40 // 0b01000000 +#define CHUNK_TICK_INLINE_MASK 0x20 // 0b00100000 +#define CHUNK_TICK_DELTA_V3_MASK 0x3f // 0b00111111 +#define CHUNK_TICK_DELTA_V5_MASK 0x1f // 0b00011111 +#define CHUNK_NORMAL_TYPE_MASK 0x60 // 0b01100000 +#define CHUNK_NORMAL_SIZE_MASK 0x1f // 0b00011111 const char headermagic[7] = "TWDEMO\0"; const unsigned char mapmagic[] = {0x6b, 0xe6, 0xda, 0x4a, 0xce, 0xbd, 0x38, 0x0c, -- cgit v1.2.3