mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 14:47:22 +01:00
Yet another NP_Protect version
This commit is contained in:
@@ -448,7 +448,9 @@ int ConvertMpqHeaderToFormat4(
|
||||
// Reason: Storm.dll in Warcraft III ignores format version value
|
||||
if((MapType == MapTypeWarcraft3) || (dwFlags & MPQ_OPEN_FORCE_MPQ_V1))
|
||||
wFormatVersion = MPQ_FORMAT_VERSION_1;
|
||||
if((MapType == MapTypeStarcraft2) && (pHeader->wFormatVersion > MPQ_FORMAT_VERSION_4))
|
||||
|
||||
// Don't accept format 3 for Starcraft II maps
|
||||
if((MapType == MapTypeStarcraft2) && (pHeader->wFormatVersion > MPQ_FORMAT_VERSION_2))
|
||||
wFormatVersion = MPQ_FORMAT_VERSION_4;
|
||||
|
||||
// Format-specific fixes
|
||||
|
||||
Reference in New Issue
Block a user