mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Tools/Mapextractor): Fix water height redundancy algorithm ignoring "no water" (#10947)
This commit is contained in:
committed by
GitHub
parent
8b531b034b
commit
090cc5e2c6
@@ -308,7 +308,7 @@ void ReadLiquidTypeTableDBC()
|
||||
|
||||
// Map file format data
|
||||
static char const* MAP_MAGIC = "MAPS";
|
||||
static uint32 const MAP_VERSION_MAGIC = 8;
|
||||
static uint32 const MAP_VERSION_MAGIC = 9;
|
||||
static char const* MAP_AREA_MAGIC = "AREA";
|
||||
static char const* MAP_HEIGHT_MAGIC = "MHGT";
|
||||
static char const* MAP_LIQUID_MAGIC = "MLIQ";
|
||||
@@ -841,7 +841,14 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int
|
||||
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