aboutsummaryrefslogtreecommitdiff
path: root/src/SFileAddFile.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/SFileAddFile.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/SFileAddFile.cpp')
-rw-r--r--src/SFileAddFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFileAddFile.cpp b/src/SFileAddFile.cpp
index aba421e..59a245a 100644
--- a/src/SFileAddFile.cpp
+++ b/src/SFileAddFile.cpp
@@ -140,7 +140,7 @@ static int WriteDataToMpqFile(
hf->dwCrc32 = crc32(hf->dwCrc32, hf->pbFileSector, dwBytesInSector);
// Compress the file sector, if needed
- if(pFileEntry->dwFlags & MPQ_FILE_COMPRESSED)
+ if(pFileEntry->dwFlags & MPQ_FILE_COMPRESS_MASK)
{
int nOutBuffer = (int)dwBytesInSector;
int nInBuffer = (int)dwBytesInSector;
@@ -365,7 +365,7 @@ int SFileAddFile_Init(
dwFlags &= ~MPQ_FILE_SECTOR_CRC;
// Sector CRC is not allowed if the file is not compressed
- if(!(dwFlags & MPQ_FILE_COMPRESSED))
+ if(!(dwFlags & MPQ_FILE_COMPRESS_MASK))
dwFlags &= ~MPQ_FILE_SECTOR_CRC;
// Fix Key is not allowed if the file is not enrypted