From af80e64ecf11d991f9e49fb546cbb2e2cf219514 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sat, 11 Jan 2020 20:54:58 +0900 Subject: [PATCH] Calculate map MD4 used for maphacks # Conflicts: # source/blood/src/db.cpp --- source/blood/src/db.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blood/src/db.cpp b/source/blood/src/db.cpp index 502b62142..5e593c9b2 100644 --- a/source/blood/src/db.cpp +++ b/source/blood/src/db.cpp @@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "compat.h" #include "common_game.h" #include "m_crc32.h" +#include "md4.h" //#include "actor.h" #include "globals.h" @@ -1108,6 +1109,7 @@ int dbLoadMap(const char *pPath, int *pX, int *pY, int *pZ, short *pAngle, short #if B_BIG_ENDIAN == 1 nCRC = B_LITTLE32(nCRC); #endif + md4once((unsigned char*)pData, nSize, g_loadedMapHack.md4); if (Bcrc32(pData, nSize-4, 0) != nCRC) { initprintf("Map File does not match CRC");