aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseCommon.cpp
diff options
context:
space:
mode:
authorLadislav <Zezula>2013-11-15 10:17:43 +0100
committerLadislav <Zezula>2013-11-15 10:17:43 +0100
commit87eb1df287ebe76725d376a28facccbe0ccd7f92 (patch)
treed911227a2c9976a075426f9817812f9119404759 /src/SBaseCommon.cpp
parenta9579a3f4ab1a27a822bcc53f3e6a9b1a00e6418 (diff)
+ Support for compile-time messages for deprecated symbols
+ Replaced MPQ_FILE_COMPRESSED with more descriptive MPQ_FILE_COMPRESS_MASK
Diffstat (limited to 'src/SBaseCommon.cpp')
-rw-r--r--src/SBaseCommon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SBaseCommon.cpp b/src/SBaseCommon.cpp
index 78537cf..c0bfffb 100644
--- a/src/SBaseCommon.cpp
+++ b/src/SBaseCommon.cpp
@@ -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];