diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-06 14:06:01 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-06 14:06:01 +0100 |
| commit | 26a7b9bbf466dd01b5449ed5819c3e90ac398a1d (patch) | |
| tree | 54b1da57da21739e2b56d6ef2dd18e505628385c /inc | |
| parent | 7beac4df7d2b618b9e45bb7dd387c9f12d0075cf (diff) | |
refactor readdemoheader
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/demo.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |
