summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-05-03 13:32:31 +0200
committerjohannes <johannes.herman@gmail.com>2024-05-03 13:32:31 +0200
commit671771cfc54b47f7393caa7c3fab83eb09884d27 (patch)
tree686a15ebcbd89b166967ad4e77fa290e64d2ef33 /src/demo.c
parent60334a5c4fef17ec7944fc26da5c1497c7f22bec (diff)
changed all binary numbers to hex
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c14
1 files changed, 7 insertions, 7 deletions
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 <stdlib.h>
#include <string.h>
-#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,