aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseFileTable.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2020-12-20 11:05:08 +0100
committerLadislav Zezula <zezula@volny.cz>2020-12-20 11:05:08 +0100
commit7a0fcab2d24a8be064834347e4c9e0bd9ba574cb (patch)
tree4f9f3c25322cc72de9973731bdc8eb3d3c4c7ac3 /src/SBaseFileTable.cpp
parent383e1572eecafdfe4f92ddad7a4bece069e12f38 (diff)
Yet another NP_Protect version
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r--src/SBaseFileTable.cpp4
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