mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
Calculate map MD4 used for maphacks
# Conflicts: # source/blood/src/db.cpp
This commit is contained in:
parent
4825d66e10
commit
af80e64ecf
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue