mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
cd5d598bd6
commit
1997cf2769
2 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue