diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-12-20 11:05:08 +0100 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-12-20 11:05:08 +0100 |
commit | 7a0fcab2d24a8be064834347e4c9e0bd9ba574cb (patch) | |
tree | 4f9f3c25322cc72de9973731bdc8eb3d3c4c7ac3 /src/SBaseFileTable.cpp | |
parent | 383e1572eecafdfe4f92ddad7a4bece069e12f38 (diff) |
Yet another NP_Protect version
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r-- | src/SBaseFileTable.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index aba5e2c..3d74fb1 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -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
|