mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-21 15:14:28 +01:00
+ Support for compile-time messages for deprecated symbols
+ Replaced MPQ_FILE_COMPRESSED with more descriptive MPQ_FILE_COMPRESS_MASK
This commit is contained in:
@@ -1151,7 +1151,7 @@ int AllocateSectorOffsets(TMPQFile * hf, bool bLoadFromFile)
|
||||
dwSectorOffsLen += sizeof(DWORD);
|
||||
|
||||
// Only allocate and load the table if the file is compressed
|
||||
if(pFileEntry->dwFlags & MPQ_FILE_COMPRESSED)
|
||||
if(pFileEntry->dwFlags & MPQ_FILE_COMPRESS_MASK)
|
||||
{
|
||||
__LoadSectorOffsets:
|
||||
|
||||
@@ -1364,7 +1364,7 @@ int WriteSectorOffsets(TMPQFile * hf)
|
||||
|
||||
// The caller must make sure that this function is only called
|
||||
// when the following is true.
|
||||
assert(hf->pFileEntry->dwFlags & MPQ_FILE_COMPRESSED);
|
||||
assert(hf->pFileEntry->dwFlags & MPQ_FILE_COMPRESS_MASK);
|
||||
assert(hf->SectorOffsets != NULL);
|
||||
dwSectorOffsLen = hf->SectorOffsets[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user