summaryrefslogtreecommitdiff
path: root/inc/demo.h
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-06 12:54:10 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-06 12:54:10 +0100
commitf8e8e6622eda179bc6f88b0c064fb2629c98fac2 (patch)
treeccbe6f1bffcf4fc804290cd1cf7e2726455e1f8c /inc/demo.h
parent808883b430e869413046b87a12095068677fe383 (diff)
moved reverseint to pack
Diffstat (limited to 'inc/demo.h')
-rw-r--r--inc/demo.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/demo.h b/inc/demo.h
index 0b398b0..25c0070 100644
--- a/inc/demo.h
+++ b/inc/demo.h
@@ -3,6 +3,14 @@
#include <stdio.h>
+typedef enum
+{
+ DEMOTICK = 0,
+ DEMOSNAP = 1,
+ DEMOMESSAGE = 2,
+ DEMODELTA = 3
+} demotype;
+
/* demoheader struct */
typedef struct
{
@@ -72,7 +80,7 @@ typedef union {
/* demochunk struct */
typedef struct
{
- unsigned char type;
+ demotype type;
chunkdata data;
} demochunk;