[10002] Fixed map loading .map build checks.

Bug exist long time before recent code moves.
But it not affect in cases proper .map files.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
patman128 2010-05-29 04:43:12 +04:00 committed by VladimirMangos
parent cd5d598bd6
commit 1997cf2769
2 changed files with 3 additions and 3 deletions

View file

@ -77,8 +77,8 @@ bool GridMap::loadData(char *filename)
fread(&header, sizeof(header),1,in); fread(&header, sizeof(header),1,in);
if (header.mapMagic == *((uint32 const*)(MAP_MAGIC)) && if (header.mapMagic == *((uint32 const*)(MAP_MAGIC)) &&
header.versionMagic == *((uint32 const*)(MAP_VERSION_MAGIC)) || header.versionMagic == *((uint32 const*)(MAP_VERSION_MAGIC)) &&
!IsAcceptableClientBuild(header.buildMagic)) IsAcceptableClientBuild(header.buildMagic))
{ {
// loadup area data // loadup area data
if (header.areaMapOffset && !loadAreaData(in, header.areaMapOffset, header.areaMapSize)) if (header.areaMapOffset && !loadAreaData(in, header.areaMapOffset, header.areaMapSize))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10001" #define REVISION_NR "10002"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__