diff options
| author | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
|---|---|---|
| committer | John Schoenick <[email protected]> | 2015-09-09 18:35:41 -0700 |
| commit | 0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch) | |
| tree | c831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/bspfile.h | |
| parent | Updated the SDK with the latest code from the TF and HL2 branches. (diff) | |
| download | source-sdk-2013-master.tar.xz source-sdk-2013-master.zip | |
Diffstat (limited to 'mp/src/public/bspfile.h')
| -rw-r--r-- | mp/src/public/bspfile.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mp/src/public/bspfile.h b/mp/src/public/bspfile.h index 21d9f375..d4c3a059 100644 --- a/mp/src/public/bspfile.h +++ b/mp/src/public/bspfile.h @@ -376,7 +376,9 @@ struct lump_t DECLARE_BYTESWAP_DATADESC(); int fileofs, filelen; int version; // default to zero - char fourCC[4]; // default to ( char )0, ( char )0, ( char )0, ( char )0 + // this field was char fourCC[4] previously, but was unused, favoring the LUMP IDs above instead. It has been + // repurposed for compression. 0 implies the lump is not compressed. + int uncompressedSize; // default to zero }; @@ -384,7 +386,7 @@ struct dheader_t { DECLARE_BYTESWAP_DATADESC(); int ident; - int version; + int version; lump_t lumps[HEADER_LUMPS]; int mapRevision; // the map's revision (iteration, version) number (added BSPVERSION 6) }; @@ -419,7 +421,7 @@ struct dgamelumpheader_t // This is expected to be a four-CC code ('lump') typedef int GameLumpId_t; -// 360 only: game lump is compressed, filelen reflects original size +// game lump is compressed, filelen reflects original size // use next entry fileofs to determine actual disk lump compressed size // compression stage ensures a terminal null dictionary entry #define GAMELUMPFLAG_COMPRESSED 0x0001 |