summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-06 14:06:01 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-06 14:06:01 +0100
commit26a7b9bbf466dd01b5449ed5819c3e90ac398a1d (patch)
tree54b1da57da21739e2b56d6ef2dd18e505628385c /inc
parent7beac4df7d2b618b9e45bb7dd387c9f12d0075cf (diff)
refactor readdemoheader
Diffstat (limited to 'inc')
-rw-r--r--inc/demo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/demo.h b/inc/demo.h
index 25c0070..efb3a23 100644
--- a/inc/demo.h
+++ b/inc/demo.h
@@ -9,7 +9,7 @@ typedef enum
DEMOSNAP = 1,
DEMOMESSAGE = 2,
DEMODELTA = 3
-} demotype;
+} demochunktype;
/* demoheader struct */
typedef struct
@@ -17,10 +17,10 @@ typedef struct
unsigned char version;
char netversion[64];
char mapname[64];
- unsigned char mapsize[4]; // Big endian int
- unsigned char mapcrc[4]; // Big endian int
+ int mapsize;
+ int mapcrc;
char type[8];
- unsigned char length[4]; // Big endian int
+ int length;
char timestamp[20];
} demoheader;
@@ -80,7 +80,7 @@ typedef union {
/* demochunk struct */
typedef struct
{
- demotype type;
+ demochunktype type;
chunkdata data;
} demochunk;