mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +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 "compat.h"
|
||||||
#include "common_game.h"
|
#include "common_game.h"
|
||||||
#include "m_crc32.h"
|
#include "m_crc32.h"
|
||||||
|
#include "md4.h"
|
||||||
|
|
||||||
//#include "actor.h"
|
//#include "actor.h"
|
||||||
#include "globals.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
|
#if B_BIG_ENDIAN == 1
|
||||||
nCRC = B_LITTLE32(nCRC);
|
nCRC = B_LITTLE32(nCRC);
|
||||||
#endif
|
#endif
|
||||||
|
md4once((unsigned char*)pData, nSize, g_loadedMapHack.md4);
|
||||||
if (Bcrc32(pData, nSize-4, 0) != nCRC)
|
if (Bcrc32(pData, nSize-4, 0) != nCRC)
|
||||||
{
|
{
|
||||||
initprintf("Map File does not match CRC");
|
initprintf("Map File does not match CRC");
|
||||||
|
|
Loading…
Reference in a new issue