mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make wad files type size-safe.
This commit is contained in:
parent
f59eec415c
commit
faf63e60c2
1 changed files with 6 additions and 6 deletions
|
@ -56,20 +56,20 @@
|
|||
#define TYP_MIPTEX 68
|
||||
|
||||
typedef struct qpic_s {
|
||||
int width, height;
|
||||
int32_t width, height;
|
||||
byte data[]; // variably sized
|
||||
} qpic_t;
|
||||
|
||||
typedef struct wadinfo_s {
|
||||
char id[4]; // should be WAD2 or 2DAW
|
||||
int numlumps;
|
||||
int infotableofs;
|
||||
int32_t numlumps;
|
||||
int32_t infotableofs;
|
||||
} wadinfo_t;
|
||||
|
||||
typedef struct lumpinfo_s {
|
||||
int filepos;
|
||||
int disksize;
|
||||
int size; // uncompressed
|
||||
int32_t filepos;
|
||||
int32_t disksize;
|
||||
int32_t size; // uncompressed
|
||||
byte type;
|
||||
byte compression;
|
||||
byte pad1, pad2;
|
||||
|
|
Loading…
Reference in a new issue