From 87eb1df287ebe76725d376a28facccbe0ccd7f92 Mon Sep 17 00:00:00 2001 From: Ladislav Date: Fri, 15 Nov 2013 10:17:43 +0100 Subject: + Support for compile-time messages for deprecated symbols + Replaced MPQ_FILE_COMPRESSED with more descriptive MPQ_FILE_COMPRESS_MASK --- src/SFileAddFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SFileAddFile.cpp') 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 -- cgit v1.2.3