From 26a7b9bbf466dd01b5449ed5819c3e90ac398a1d Mon Sep 17 00:00:00 2001 From: johannes Date: Tue, 6 Feb 2024 14:06:01 +0100 Subject: refactor readdemoheader --- inc/demo.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'inc/demo.h') 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; -- cgit v1.2.3