mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
MapExtraction: Fix water height redundancy algorithm ignoring "no water" (#26324)
* MapExtraction: Fix water height redundancy algorithm ignoring "no water"
* Update MMAP_VERSION
* Change map version
Co-authored-by: jackpoz <giacomopoz@gmail.com>
(cherry picked from commit 00da074109)
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#include "DetourNavMesh.h"
|
||||
|
||||
const uint32 MMAP_MAGIC = 0x4d4d4150; // 'MMAP'
|
||||
#define MMAP_VERSION 13
|
||||
#define MMAP_VERSION 14
|
||||
|
||||
struct MmapTileHeader
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "MapDefines.h"
|
||||
|
||||
u_map_magic const MapMagic = { { 'M','A','P','S' } };
|
||||
uint32 const MapVersionMagic = 9;
|
||||
uint32 const MapVersionMagic = 10;
|
||||
u_map_magic const MapAreaMagic = { { 'A','R','E','A' } };
|
||||
u_map_magic const MapHeightMagic = { { 'M','H','G','T' } };
|
||||
u_map_magic const MapLiquidMagic = { { 'M','L','I','Q' } };
|
||||
|
||||
@@ -878,7 +878,10 @@ bool ConvertADT(ChunkedFile& adt, std::string const& mapName, std::string const&
|
||||
if (minHeight > h) minHeight = h;
|
||||
}
|
||||
else
|
||||
{
|
||||
liquid_height[y][x] = CONF_use_minHeight;
|
||||
if (minHeight > CONF_use_minHeight) minHeight = CONF_use_minHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
map.liquidMapOffset = map.heightMapOffset + map.heightMapSize;
|
||||
|
||||
Reference in New Issue
Block a user